• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

tidy tool for Template Toolkit


Commit MetaInfo

修订版9d9df820e560239e7c8f346c3484353712c572b4 (tree)
时间2015-08-18 19:39:43
作者hylom <hylom@user...>
Commiterhylom

Log Message

add SWITCH directive support

更改概述

差异

--- a/tttidy.py
+++ b/tttidy.py
@@ -93,8 +93,8 @@ class Indenter(object):
9393
9494 self.debug_print(line)
9595
96- count_if = len(re.findall(u'^(IF|FOREACH)\s', line))
97- count_if += len(re.findall(u'\s(IF|FOREACH)\s', line))
96+ count_if = len(re.findall(u'^(IF|FOREACH|SWITCH)\s', line))
97+ count_if += len(re.findall(u'\s(IF|FOREACH|SWITCH)\s', line))
9898 count_if += len(re.findall(u'^BLOCK(\s|;)', line))
9999 count_if += len(re.findall(u'\sBLOCK(\s|;)', line))
100100 count_end = len(re.findall(u'^END(\s|;)', line))