Skip to content

Commit 3fc3ad7

Browse files
committed
Added block comment support
1 parent 940582b commit 3fc3ad7

4 files changed

Lines changed: 75 additions & 0 deletions

File tree

et_script.tmLanguage

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@
3131
<string>#comment</string>
3232
</dict>
3333

34+
<dict>
35+
<key>include</key>
36+
<string>#commentBlock</string>
37+
</dict>
38+
3439
<dict>
3540
<key>include</key>
3641
<string>#routine-name</string>
@@ -80,6 +85,11 @@
8085
<key>include</key>
8186
<string>#comment</string>
8287
</dict>
88+
89+
<dict>
90+
<key>include</key>
91+
<string>#commentBlock</string>
92+
</dict>
8393
</array>
8494
</dict>
8595

@@ -366,6 +376,18 @@
366376
<string>comment.line.double-slash</string>
367377
</dict>
368378

379+
<key>commentBlock</key>
380+
<dict>
381+
<key>begin</key>
382+
<string>/\*</string>
383+
384+
<key>end</key>
385+
<string>\*/</string>
386+
387+
<key>name</key>
388+
<string>comment.block</string>
389+
</dict>
390+
369391
<key>number</key>
370392
<dict>
371393
<key>match</key>
@@ -400,6 +422,11 @@
400422
<dict>
401423
<key>include</key>
402424
<string>#comment</string>
425+
</dict>
426+
427+
<dict>
428+
<key>include</key>
429+
<string>#commentBlock</string>
403430
</dict>
404431

405432
<dict>

preferences/q3[comments].tmPreferences

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@
1616
<key>value</key>
1717
<string>// </string>
1818
</dict>
19+
<dict>
20+
<key>name</key>
21+
<string>TM_COMMENT_START_2</string>
22+
<key>value</key>
23+
<string>/*</string>
24+
</dict>
25+
<dict>
26+
<key>name</key>
27+
<string>TM_COMMENT_END_2</string>
28+
<key>value</key>
29+
<string>*/</string>
30+
</dict>
1931
</array>
2032
</dict>
2133
<key>uuid</key>

q3_cfg.tmLanguage

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@
3030
<string>comment.q3cfg</string>
3131
</dict>
3232

33+
<dict>
34+
<key>comment</key>
35+
<string>comment block</string>
36+
37+
<key>begin</key>
38+
<string>/\*</string>
39+
40+
<key>end</key>
41+
<string>\*/</string>
42+
43+
<key>name</key>
44+
<string>comment.block</string>
45+
</dict>
46+
3347
<dict>
3448
<key>comment</key>
3549
<string>String</string>

q3_shader.tmLanguage

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
<key>include</key>
3333
<string>#comment</string>
3434
</dict>
35+
36+
<dict>
37+
<key>include</key>
38+
<string>#commentBlock</string>
39+
</dict>
3540

3641
<dict>
3742
<key>include</key>
@@ -434,6 +439,18 @@
434439
<string>comment.line.double-slash</string>
435440
</dict>
436441

442+
<key>commentBlock</key>
443+
<dict>
444+
<key>begin</key>
445+
<string>/\*</string>
446+
447+
<key>end</key>
448+
<string>\*/</string>
449+
450+
<key>name</key>
451+
<string>comment.block</string>
452+
</dict>
453+
437454
<key>number</key>
438455
<dict>
439456
<key>match</key>
@@ -468,6 +485,11 @@
468485
<dict>
469486
<key>include</key>
470487
<string>#comment</string>
488+
</dict>
489+
490+
<dict>
491+
<key>include</key>
492+
<string>#commentBlock</string>
471493
</dict>
472494

473495
<dict>

0 commit comments

Comments
 (0)