Skip to content

Commit

Permalink
Merge pull request #276 from JuliaEditorSupport/sp/add-separator-toke…
Browse files Browse the repository at this point in the history
…nization

feat: add separator tokenization
  • Loading branch information
pfitzseb authored Jan 16, 2024
2 parents 1b7891e + ca65762 commit ead441d
Show file tree
Hide file tree
Showing 4 changed files with 183 additions and 22 deletions.
17 changes: 17 additions & 0 deletions grammars/julia.cson
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ patterns: [
{
include: '#symbol'
}
{
include: '#punctuation'
}
]
repository:
array:
Expand Down Expand Up @@ -914,5 +917,19 @@ repository:
{
include: '#symbol'
}
{
include: '#punctuation'
}
]
punctuation:
patterns: [
{
match: ','
name: 'punctuation.separator.comma.julia'
}
{
match: ';'
name: 'punctuation.separator.semicolon.julia'
}
]
scopeName: 'source.julia'
18 changes: 18 additions & 0 deletions grammars/julia.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
},
{
"include": "#symbol"
},
{
"include": "#punctuation"
}
],
"repository": {
Expand Down Expand Up @@ -1061,6 +1064,21 @@
},
{
"include": "#symbol"
},
{
"include": "#punctuation"
}
]
},
"punctuation": {
"patterns": [
{
"match": ",",
"name": "punctuation.separator.comma.julia"
},
{
"match": ";",
"name": "punctuation.separator.semicolon.julia"
}
]
}
Expand Down
18 changes: 18 additions & 0 deletions grammars/julia_vscode.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
},
{
"include": "#symbol"
},
{
"include": "#punctuation"
}
],
"repository": {
Expand Down Expand Up @@ -1061,6 +1064,21 @@
},
{
"include": "#symbol"
},
{
"include": "#punctuation"
}
]
},
"punctuation": {
"patterns": [
{
"match": ",",
"name": "punctuation.separator.comma.julia"
},
{
"match": ";",
"name": "punctuation.separator.semicolon.julia"
}
]
}
Expand Down
Loading

0 comments on commit ead441d

Please sign in to comment.