Skip to content

Commit 19ed469

Browse files
authored
Remove quoted string literal highlighting from grammar (#1860)
* Remove quoted string literal syntax * Update CHANGELOG
1 parent 3e99221 commit 19ed469

File tree

3 files changed

+2
-30
lines changed

3 files changed

+2
-30
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
## Unreleased
44

55
- Add mlx syntax highlight (#1802)
6+
- Remove broken quoted string literal highlighting from grammar. Quoted strings
7+
are already highlighted correctly by the language server. (#1860)
68

79
## 1.29.0
810

syntaxes/mlx.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -341,27 +341,11 @@
341341
"match": "\\\\\""
342342
}
343343
]
344-
},
345-
{
346-
"comment": "quoted string literal",
347-
"begin": "\\{[[:lower:]_]*\\|",
348-
"end": "\\|[[:lower:]_]*\\}"
349344
}
350345
]
351346
},
352347
"strings": {
353348
"patterns": [
354-
{
355-
"comment": "quoted string literal",
356-
"name": "string.quoted.braced.ocaml",
357-
"begin": "\\{(%%?[[:alpha:]_][[:word:]']*(\\.[[:alpha:]_][[:word:]']*)*[[:space:]]*)?[[:lower:]_]*\\|",
358-
"end": "\\|[[:lower:]_]*\\}",
359-
"beginCaptures": {
360-
"1": {
361-
"name": "keyword.other.extension.ocaml"
362-
}
363-
}
364-
},
365349
{
366350
"comment": "string literal",
367351
"name": "string.quoted.double.ocaml",

syntaxes/ocaml.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -168,26 +168,12 @@
168168
"begin": "\"",
169169
"end": "\"",
170170
"patterns": [{ "match": "\\\\\\\\" }, { "match": "\\\\\"" }]
171-
},
172-
{
173-
"comment": "quoted string literal",
174-
"begin": "\\{[[:lower:]_]*\\|",
175-
"end": "\\|[[:lower:]_]*\\}"
176171
}
177172
]
178173
},
179174

180175
"strings": {
181176
"patterns": [
182-
{
183-
"comment": "quoted string literal",
184-
"name": "string.quoted.braced.ocaml",
185-
"begin": "\\{(%%?[[:alpha:]_][[:word:]']*(\\.[[:alpha:]_][[:word:]']*)*[[:space:]]*)?[[:lower:]_]*\\|",
186-
"end": "\\|[[:lower:]_]*\\}",
187-
"beginCaptures": {
188-
"1": { "name": "keyword.other.extension.ocaml" }
189-
}
190-
},
191177
{
192178
"comment": "string literal",
193179
"name": "string.quoted.double.ocaml",

0 commit comments

Comments
 (0)