Skip to content

Commit 58f682f

Browse files
authored
Merge pull request #2 from annarailton/add-toggle-comment
Add toggle comment
2 parents 279ad32 + 73ed1c6 commit 58f682f

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

QL.sublime-syntax

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ contexts:
4343
scope: variable.language.dont-care.ql
4444
- match: '::'
4545
scope: punctuation.accessor
46+
- match: '\b[0-9A-Za-z_]\b'
47+
scope: variable.id_character
4648

4749
# Add highlight mismatching brackets
4850
- match: \(\{

ql.sublime-settings

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// These settings override both User and Default settings for the ql syntax
2+
{
3+
// The number of spaces a tab is considered equal to
4+
"tab_size": 2,
5+
6+
// Set to true to insert spaces when tab is pressed
7+
"translate_tabs_to_spaces": true,
8+
}

ql.tmPreferences

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<plist version="1.0">
3+
<dict>
4+
<key>name</key>
5+
<string>Comments</string>
6+
<key>scope</key>
7+
<string>source.QL</string>
8+
<key>settings</key>
9+
<dict>
10+
<key>shellVariables</key>
11+
<array>
12+
<dict>
13+
<key>name</key>
14+
<string>TM_COMMENT_START</string>
15+
<key>value</key>
16+
<string>// </string>
17+
</dict>
18+
<dict>
19+
<key>name</key>
20+
<string>TM_COMMENT_START_2</string>
21+
<key>value</key>
22+
<string>/*</string>
23+
</dict>
24+
<dict>
25+
<key>name</key>
26+
<string>TM_COMMENT_END_2</string>
27+
<key>value</key>
28+
<string>*/</string>
29+
</dict>
30+
</array>
31+
</dict>
32+
</dict>
33+
</plist>

0 commit comments

Comments
 (0)