Skip to content

Commit

Permalink
fix tcl for utf-8
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Nov 3, 2020
1 parent 8d1a1c9 commit e18cd94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/languages/tcl.js
Expand Up @@ -50,7 +50,7 @@ export default function(hljs) {
begin: '\\$(::)?[a-zA-Z_]+((::)?[a-zA-Z0-9_]+)*' + regex.optional(ARRAY_ACCESS),
},
{
begin: '\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*' + regex.optional(ARRAY_ACCESS) + '}',
begin: '\\$\\{(::)?[a-zA-Z_]((::)?[a-zA-Z0-9_])*' + regex.optional(ARRAY_ACCESS) + '\\}',
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/mode_compiler.js
Expand Up @@ -36,7 +36,7 @@ export function compileLanguage(language) {
function langRe(value, global) {
return new RegExp(
regex.source(value),
'mu' + (language.case_insensitive ? 'i' : '') + (global ? 'g' : '')
'm' + (language.case_insensitive ? 'i' : '') + (global ? 'g' : '')
);
}

Expand Down

0 comments on commit e18cd94

Please sign in to comment.