Skip to content

Commit

Permalink
GROUP and ENDGROUP was highlighted wrong
Browse files Browse the repository at this point in the history
also added indentation
  • Loading branch information
runxel committed Mar 31, 2015
1 parent d63e4f0 commit 8ccf1f9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Preferences/Miscellaneous.tmPreferences
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
<key>settings</key>
<dict>
<key>decreaseIndentPattern</key>
<string>(?i)(^\s*(END|ENDIF|RETURN|NEXT|ENDWHILE|UNTIL))</string>
<string>(?i)(^\s*(END|ENDIF|RETURN|NEXT|ENDWHILE|UNTIL|ENDGROUP))</string>
<key>increaseIndentPattern</key>
<string>(?i)(^\s*(IF)\b.*\sTHEN$)|(^\s*(ELSE)\s*$)|(^\s*(FOR|DO|WHILE|REPEAT)\b.*$)</string>
<string>(?i)(^\s*(IF)\b.*\sTHEN$)|(^\s*(ELSE)\s*$)|(^\s*(FOR|DO|WHILE|REPEAT|GROUP)\b.*$)</string>
<key>shellVariables</key>
<array>
<dict>
Expand Down
4 changes: 2 additions & 2 deletions Syntaxes/GDL.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ patterns:
name: keyword.operator.gdl

# C O N T R O L S
- match: (?i)(?<=^|\s)(FOR|TO|STEP|NEXT|DO|WHILE|ENDWHILE|REPEAT|UNTIL|IF|THEN|ELSE|ENDIF|GOTO|GOSUB|RETURN|END|EXIT|BREAKPOINT)(?=$|\s)
- match: (?i)(?<=^|\s)(FOR|TO|STEP|NEXT|DO|WHILE|END(WHILE|IF|GROUP)|REPEAT|UNTIL|IF|THEN|ELSE|GO(TO|SUB)|RETURN|EXIT|BREAKPOINT|GROUP)(?=$|\s)
name: keyword.control.flow.gdl

- match: (?i)(?<=^|\s)(ADD[2XYZ]?|ROT[2XYZ]?|MUL[2XYZ]?|XFORM|DEL(\sTOP)?)(?=$|\s|\+|\-|\^|\*{1,2}|\/|\=|<|>|<\=|>\=|<>|\#)
Expand Down Expand Up @@ -79,7 +79,7 @@ patterns:
- match: (?i)(?<=^|\s)(CUT(PLANE(\{[23]\})?|POLY[A]?|FORM|SHAPE|END)|WALL(HOLE|NICHE))(?=$|\s)
name: keyword.gdl.shape.3D.cut

- match: (?i)(?<=^|\s)((ADD|ISECT|SUB|PLACE|KILL)?(GROUP)|SWEEPGROUP(\{2\})?|ISECTLINES|CREATE_GROUP_MAT)(?=$|\s)
- match: (?i)(?<=^|\s)((ADD|ISECT|SUB|PLACE|KILL)GROUP|SWEEPGROUP(\{2\})?|ISECTLINES|CREATE_GROUP_MAT)(?=$|\s)
name: keyword.gdl.shape.3D.seo

- match: (?i)(?<=^|\s)(TEXT|RICHTEXT)(?=$|\s)
Expand Down
4 changes: 2 additions & 2 deletions Syntaxes/GDL.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</dict>
<dict>
<key>match</key>
<string>(?i)(?&lt;=^|\s)(FOR|TO|STEP|NEXT|DO|WHILE|ENDWHILE|REPEAT|UNTIL|IF|THEN|ELSE|ENDIF|GOTO|GOSUB|RETURN|END|EXIT|BREAKPOINT)(?=$|\s)</string>
<string>(?i)(?&lt;=^|\s)(FOR|TO|STEP|NEXT|DO|WHILE|END(WHILE|IF|GROUP)|REPEAT|UNTIL|IF|THEN|ELSE|GO(TO|SUB)|RETURN|EXIT|BREAKPOINT|GROUP)(?=$|\s)</string>
<key>name</key>
<string>keyword.control.flow.gdl</string>
</dict>
Expand Down Expand Up @@ -155,7 +155,7 @@
</dict>
<dict>
<key>match</key>
<string>(?i)(?&lt;=^|\s)((ADD|ISECT|SUB|PLACE|KILL)?(GROUP)|SWEEPGROUP(\{2\})?|ISECTLINES|CREATE_GROUP_MAT)(?=$|\s)</string>
<string>(?i)(?&lt;=^|\s)((ADD|ISECT|SUB|PLACE|KILL)GROUP|SWEEPGROUP(\{2\})?|ISECTLINES|CREATE_GROUP_MAT)(?=$|\s)</string>
<key>name</key>
<string>keyword.gdl.shape.3D.seo</string>
</dict>
Expand Down

0 comments on commit 8ccf1f9

Please sign in to comment.