Skip to content

Commit

Permalink
add fault tolerance for syntax highlighting (#1690)
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicshuai authored and cwhitten committed Dec 3, 2019
1 parent cc6ed01 commit 8c55ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Composer/packages/lib/code-editor/src/languages/lg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function registerLGLanguage(monaco: typeof monacoEditor) {
[/([a-zA-Z][a-zA-Z0-9_.-]*)(,|\))/, ['parameter', 'delimeter']],
[/([a-zA-Z][a-zA-Z0-9_.-]*)/, 'parameter'],
[/[0-9.]+/, 'number'],
[/./, 'expression.content'],
[/.*$/, 'expression.content', '@pop'],
],
structure_lg: [
[/^\s*\]\s*$/, 'structure-lg', '@pop'],
Expand Down

0 comments on commit 8c55ba3

Please sign in to comment.