File tree 4 files changed +21
-28
lines changed
4 files changed +21
-28
lines changed Original file line number Diff line number Diff line change 1
1
# [PackageDev] target_format: plist, ext: tmLanguage
2
- ---
3
2
name : q
4
3
scopeName : source.q
5
4
fileTypes : [q]
@@ -16,8 +15,8 @@ patterns:
16
15
' 1 ' : {name: puctuation.definition.comment.end.q}
17
16
18
17
- comment : comment to the end of file
19
- name : comment.block.end. q
20
- begin : ^\\ [ \t]*$
18
+ name : comment.block.q
19
+ begin : ^(\\) [ \t]*$
21
20
beginCaptures :
22
21
' 1 ' : {name: puctuation.definition.comment.begin.q}
23
22
end : ^\z
@@ -32,21 +31,15 @@ patterns:
32
31
name : string.quoted.double.q
33
32
begin : ' "'
34
33
beginCaptures :
35
- ' 0 ' : { name: punctuation.definition.string.begin.q }
36
- end : ' (")|((?:[^\\\n])$)'
34
+ ' 0 ' : {name: punctuation.definition.string.begin.q}
35
+ end : (")|((?:[^\\\n])$)
37
36
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}
40
39
patterns :
41
40
- include : ' #string-character-escape'
42
-
41
+
43
42
repository :
44
43
string-character-escape :
45
44
name : constant.character.escape.q
46
45
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
- ...
Original file line number Diff line number Diff line change 38
38
</dict >
39
39
<dict >
40
40
<key >begin </key >
41
- <string >^\\ [ \t]*$ </string >
41
+ <string >^(\\) [ \t]*$ </string >
42
42
<key >beginCaptures </key >
43
43
<dict >
44
44
<key >1 </key >
52
52
<key >end </key >
53
53
<string >^\z </string >
54
54
<key >name </key >
55
- <string >comment.block.end. q </string >
55
+ <string >comment.block.q </string >
56
56
</dict >
57
57
<dict >
58
58
<key >captures </key >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments