Skip to content

Commit

Permalink
Added block comment support
Browse files Browse the repository at this point in the history
  • Loading branch information
isRyven committed Feb 25, 2016
1 parent 940582b commit 3fc3ad7
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 0 deletions.
27 changes: 27 additions & 0 deletions et_script.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
<string>#comment</string>
</dict>

<dict>
<key>include</key>
<string>#commentBlock</string>
</dict>

<dict>
<key>include</key>
<string>#routine-name</string>
Expand Down Expand Up @@ -80,6 +85,11 @@
<key>include</key>
<string>#comment</string>
</dict>

<dict>
<key>include</key>
<string>#commentBlock</string>
</dict>
</array>
</dict>

Expand Down Expand Up @@ -366,6 +376,18 @@
<string>comment.line.double-slash</string>
</dict>

<key>commentBlock</key>
<dict>
<key>begin</key>
<string>/\*</string>

<key>end</key>
<string>\*/</string>

<key>name</key>
<string>comment.block</string>
</dict>

<key>number</key>
<dict>
<key>match</key>
Expand Down Expand Up @@ -400,6 +422,11 @@
<dict>
<key>include</key>
<string>#comment</string>
</dict>

<dict>
<key>include</key>
<string>#commentBlock</string>
</dict>

<dict>
Expand Down
12 changes: 12 additions & 0 deletions preferences/q3[comments].tmPreferences
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@
<key>value</key>
<string>// </string>
</dict>
<dict>
<key>name</key>
<string>TM_COMMENT_START_2</string>
<key>value</key>
<string>/*</string>
</dict>
<dict>
<key>name</key>
<string>TM_COMMENT_END_2</string>
<key>value</key>
<string>*/</string>
</dict>
</array>
</dict>
<key>uuid</key>
Expand Down
14 changes: 14 additions & 0 deletions q3_cfg.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@
<string>comment.q3cfg</string>
</dict>

<dict>
<key>comment</key>
<string>comment block</string>

<key>begin</key>
<string>/\*</string>

<key>end</key>
<string>\*/</string>

<key>name</key>
<string>comment.block</string>
</dict>

<dict>
<key>comment</key>
<string>String</string>
Expand Down
22 changes: 22 additions & 0 deletions q3_shader.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
<key>include</key>
<string>#comment</string>
</dict>

<dict>
<key>include</key>
<string>#commentBlock</string>
</dict>

<dict>
<key>include</key>
Expand Down Expand Up @@ -434,6 +439,18 @@
<string>comment.line.double-slash</string>
</dict>

<key>commentBlock</key>
<dict>
<key>begin</key>
<string>/\*</string>

<key>end</key>
<string>\*/</string>

<key>name</key>
<string>comment.block</string>
</dict>

<key>number</key>
<dict>
<key>match</key>
Expand Down Expand Up @@ -468,6 +485,11 @@
<dict>
<key>include</key>
<string>#comment</string>
</dict>

<dict>
<key>include</key>
<string>#commentBlock</string>
</dict>

<dict>
Expand Down

0 comments on commit 3fc3ad7

Please sign in to comment.