Skip to content

Commit

Permalink
Merge pull request #247 from JuliaEditorSupport/sp/string-macro-suffix
Browse files Browse the repository at this point in the history
Distinct token for string macro suffixes
  • Loading branch information
pfitzseb authored Jul 26, 2021
2 parents 97abf64 + d8faa46 commit 2b53ba2
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions grammars/julia.cson
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ repository:
"1":
name: "punctuation.definition.string.end.julia"
"2":
name: "punctuation.definition.string.end.julia"
name: "support.function.macro.julia"
name: "string.quoted.other.julia"
patterns: [
{
Expand All @@ -820,7 +820,7 @@ repository:
"1":
name: "punctuation.definition.string.end.julia"
"2":
name: "punctuation.definition.string.end.julia"
name: "support.function.macro.julia"
name: "string.quoted.other.julia"
patterns: [
{
Expand All @@ -840,7 +840,7 @@ repository:
"1":
name: "punctuation.definition.string.end.julia"
"2":
name: "punctuation.definition.string.end.julia"
name: "support.function.macro.julia"
name: "string.interpolated.backtick.julia"
patterns: [
{
Expand All @@ -860,7 +860,7 @@ repository:
"1":
name: "punctuation.definition.string.end.julia"
"2":
name: "punctuation.definition.string.end.julia"
name: "support.function.macro.julia"
name: "string.interpolated.backtick.julia"
patterns: [
{
Expand Down
8 changes: 4 additions & 4 deletions grammars/julia.json
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@
"name": "punctuation.definition.string.end.julia"
},
"2": {
"name": "punctuation.definition.string.end.julia"
"name": "support.function.macro.julia"
}
},
"name": "string.quoted.other.julia",
Expand All @@ -968,7 +968,7 @@
"name": "punctuation.definition.string.end.julia"
},
"2": {
"name": "punctuation.definition.string.end.julia"
"name": "support.function.macro.julia"
}
},
"name": "string.quoted.other.julia",
Expand All @@ -994,7 +994,7 @@
"name": "punctuation.definition.string.end.julia"
},
"2": {
"name": "punctuation.definition.string.end.julia"
"name": "support.function.macro.julia"
}
},
"name": "string.interpolated.backtick.julia",
Expand All @@ -1020,7 +1020,7 @@
"name": "punctuation.definition.string.end.julia"
},
"2": {
"name": "punctuation.definition.string.end.julia"
"name": "support.function.macro.julia"
}
},
"name": "string.interpolated.backtick.julia",
Expand Down
8 changes: 4 additions & 4 deletions grammars/julia_vscode.json
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@
"name": "punctuation.definition.string.end.julia"
},
"2": {
"name": "punctuation.definition.string.end.julia"
"name": "support.function.macro.julia"
}
},
"name": "string.quoted.other.julia",
Expand All @@ -968,7 +968,7 @@
"name": "punctuation.definition.string.end.julia"
},
"2": {
"name": "punctuation.definition.string.end.julia"
"name": "support.function.macro.julia"
}
},
"name": "string.quoted.other.julia",
Expand All @@ -994,7 +994,7 @@
"name": "punctuation.definition.string.end.julia"
},
"2": {
"name": "punctuation.definition.string.end.julia"
"name": "support.function.macro.julia"
}
},
"name": "string.interpolated.backtick.julia",
Expand All @@ -1020,7 +1020,7 @@
"name": "punctuation.definition.string.end.julia"
},
"2": {
"name": "punctuation.definition.string.end.julia"
"name": "support.function.macro.julia"
}
},
"name": "string.interpolated.backtick.julia",
Expand Down
2 changes: 1 addition & 1 deletion spec/julia-spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ describe "Julia grammar", ->
expect(tokens[1]).toEqual value: '"', scopes: ["source.julia", "string.quoted.other.julia", "punctuation.definition.string.begin.julia"]
expect(tokens[2]).toEqual value: "asdf", scopes: ["source.julia", "string.quoted.other.julia"]
expect(tokens[3]).toEqual value: '"', scopes: ["source.julia", "string.quoted.other.julia", "punctuation.definition.string.end.julia"]
expect(tokens[4]).toEqual value: '_a9Ñ', scopes: ["source.julia", "string.quoted.other.julia", "punctuation.definition.string.end.julia"]
expect(tokens[4]).toEqual value: '_a9Ñ', scopes: ["source.julia", "string.quoted.other.julia", "support.function.macro.julia"]

it "tokenizes Cxx.jl multiline string macros", ->
tokens = grammar.tokenizeLines('''
Expand Down

0 comments on commit 2b53ba2

Please sign in to comment.