Skip to content

Commit ead441d

Browse files
authored
Merge pull request #276 from JuliaEditorSupport/sp/add-separator-tokenization
feat: add separator tokenization
2 parents 1b7891e + ca65762 commit ead441d

File tree

4 files changed

+183
-22
lines changed

4 files changed

+183
-22
lines changed

grammars/julia.cson

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ patterns: [
5151
{
5252
include: '#symbol'
5353
}
54+
{
55+
include: '#punctuation'
56+
}
5457
]
5558
repository:
5659
array:
@@ -914,5 +917,19 @@ repository:
914917
{
915918
include: '#symbol'
916919
}
920+
{
921+
include: '#punctuation'
922+
}
923+
]
924+
punctuation:
925+
patterns: [
926+
{
927+
match: ','
928+
name: 'punctuation.separator.comma.julia'
929+
}
930+
{
931+
match: ';'
932+
name: 'punctuation.separator.semicolon.julia'
933+
}
917934
]
918935
scopeName: 'source.julia'

grammars/julia.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
},
4545
{
4646
"include": "#symbol"
47+
},
48+
{
49+
"include": "#punctuation"
4750
}
4851
],
4952
"repository": {
@@ -1061,6 +1064,21 @@
10611064
},
10621065
{
10631066
"include": "#symbol"
1067+
},
1068+
{
1069+
"include": "#punctuation"
1070+
}
1071+
]
1072+
},
1073+
"punctuation": {
1074+
"patterns": [
1075+
{
1076+
"match": ",",
1077+
"name": "punctuation.separator.comma.julia"
1078+
},
1079+
{
1080+
"match": ";",
1081+
"name": "punctuation.separator.semicolon.julia"
10641082
}
10651083
]
10661084
}

grammars/julia_vscode.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@
4444
},
4545
{
4646
"include": "#symbol"
47+
},
48+
{
49+
"include": "#punctuation"
4750
}
4851
],
4952
"repository": {
@@ -1061,6 +1064,21 @@
10611064
},
10621065
{
10631066
"include": "#symbol"
1067+
},
1068+
{
1069+
"include": "#punctuation"
1070+
}
1071+
]
1072+
},
1073+
"punctuation": {
1074+
"patterns": [
1075+
{
1076+
"match": ",",
1077+
"name": "punctuation.separator.comma.julia"
1078+
},
1079+
{
1080+
"match": ";",
1081+
"name": "punctuation.separator.semicolon.julia"
10641082
}
10651083
]
10661084
}

0 commit comments

Comments
 (0)