Skip to content

Commit c24f7cc

Browse files
committed
Fix scala#52: Stop illegal char after end of line or first space
1 parent 415ba76 commit c24f7cc

File tree

3 files changed

+60
-2
lines changed

3 files changed

+60
-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]*\\s(?=[^'(//)]))|$",
576576
begin: "'",
577577
beginCaptures: {
578578
'0': {

0 commit comments

Comments
 (0)