Skip to content

Commit adccab4

Browse files
committed
Fix #52: Stop illegal char after first space or end of line
1 parent 439028b commit adccab4

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

src/typescript/Scala.tmLanguage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ export const scalaTmLanguage: TmLanguage = {
572572
]
573573
},
574574
'char-literal': {
575-
end: "'",
575+
end: "'|(\\s+\b[^'])|$",
576576
begin: "'",
577577
beginCaptures: {
578578
'0': {

0 commit comments

Comments
 (0)