Skip to content

Commit

Permalink
fix lg import syntax highlight problem
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicshuai committed Feb 10, 2020
1 parent 55e1013 commit 8542a82
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 @@ -113,7 +113,7 @@ export function registerLGLanguage(monaco: typeof monacoEditor) {
],
structure_lg: [
[/^\s*\]\s*$/, 'structure-lg', '@pop'],
[/\]\s*$/, 'imports', '@pop'],
[/\]\s*\(.*\)$/, 'imports', '@pop'],
[/(\s*\[\s*)([a-zA-Z0-9_-]+\s*$)/, ['stucture-lg-identifier', 'structure-name']],
[/^\s*>[\s\S]*$/, 'comments'],
[/\|/, { token: 'alternative' }],
Expand Down

0 comments on commit 8542a82

Please sign in to comment.