• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

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

Révision9d9df820e560239e7c8f346c3484353712c572b4 (tree)
l'heure2015-08-18 19:39:43
Auteurhylom <hylom@user...>
Commiterhylom

Message de Log

add SWITCH directive support

Change Summary

Modification

--- 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))