Skip to content

Commit 3fdb641

Browse files
committed
Correct the name of test file
1 parent 3104e1d commit 3fdb641

File tree

4 files changed

+21
-28
lines changed

4 files changed

+21
-28
lines changed

q.YAML-tmLanguage

+7-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# [PackageDev] target_format: plist, ext: tmLanguage
2-
---
32
name: q
43
scopeName: source.q
54
fileTypes: [q]
@@ -16,8 +15,8 @@ patterns:
1615
'1': {name: puctuation.definition.comment.end.q}
1716

1817
- comment: comment to the end of file
19-
name: comment.block.end.q
20-
begin: ^\\[ \t]*$
18+
name: comment.block.q
19+
begin: ^(\\)[ \t]*$
2120
beginCaptures:
2221
'1': {name: puctuation.definition.comment.begin.q}
2322
end: ^\z
@@ -32,21 +31,15 @@ patterns:
3231
name: string.quoted.double.q
3332
begin: '"'
3433
beginCaptures:
35-
'0': { name: punctuation.definition.string.begin.q }
36-
end: '(")|((?:[^\\\n])$)'
34+
'0': {name: punctuation.definition.string.begin.q}
35+
end: (")|((?:[^\\\n])$)
3736
endCaptures:
38-
'1': { name: punctuation.definition.string.end.q }
39-
'2': { name: invalid.illegal.newline.q }
37+
'1': {name: punctuation.definition.string.end.q}
38+
'2': {name: invalid.illegal.newline.q}
4039
patterns:
4140
- include: '#string-character-escape'
42-
41+
4342
repository:
4443
string-character-escape:
4544
name: constant.character.escape.q
4645
match: \\(x[0-9A-Fa-f]{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)
47-
48-
49-
50-
51-
52-
...

q.tmLanguage

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</dict>
3939
<dict>
4040
<key>begin</key>
41-
<string>^\\[ \t]*$</string>
41+
<string>^(\\)[ \t]*$</string>
4242
<key>beginCaptures</key>
4343
<dict>
4444
<key>1</key>
@@ -52,7 +52,7 @@
5252
<key>end</key>
5353
<string>^\z</string>
5454
<key>name</key>
55-
<string>comment.block.end.q</string>
55+
<string>comment.block.q</string>
5656
</dict>
5757
<dict>
5858
<key>captures</key>

syntax-test.q

-12
This file was deleted.

syntax_test_comment.q

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/ SYNTAX TEST "q.tmLanguage"
2+
/
3+
/ <- source.q comment.block.q puctuation.definition.comment.begin.q
4+
asd
5+
/ <- source.q comment.block.q
6+
\
7+
/ <- source.q comment.block.q puctuation.definition.comment.end.q
8+
"123\t\"abc\"" / comment
9+
\
10+
/ <- source.q comment.block.q puctuation.definition.comment.begin.q
11+
s
12+
/ <- source.q comment.block.q

0 commit comments

Comments
 (0)