mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Clean up
This commit is contained in:
parent
5e4b3f14ae
commit
9928c69e43
1 changed files with 0 additions and 4 deletions
|
|
@ -27,8 +27,6 @@ const EMPTY_ELEMENTS: string[] = [
|
||||||
export const conf: languages.LanguageConfiguration = {
|
export const conf: languages.LanguageConfiguration = {
|
||||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
||||||
|
|
||||||
// TODO support if,else,elseif,for,in and other built in keywords
|
|
||||||
|
|
||||||
brackets: [
|
brackets: [
|
||||||
['<!--', '-->'],
|
['<!--', '-->'],
|
||||||
['<', '>'],
|
['<', '>'],
|
||||||
|
|
@ -164,11 +162,9 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
symbol: /[=><!]+/,
|
symbol: /[=><!]+/,
|
||||||
identifier: /[a-zA-Z_][\w]*/,
|
identifier: /[a-zA-Z_][\w]*/,
|
||||||
|
|
||||||
// The main tokenizer for our languages
|
|
||||||
tokenizer: {
|
tokenizer: {
|
||||||
root: [
|
root: [
|
||||||
[/\{\%\s*comment\s*\%\}/, 'comment.start.liquid', '@comment'],
|
[/\{\%\s*comment\s*\%\}/, 'comment.start.liquid', '@comment'],
|
||||||
// [/\{\%\s*raw\s*\%\}/, 'delimiter.tag', '@raw'],
|
|
||||||
[/\{\{/, { token: '@rematch', switchTo: '@liquidState.root' }],
|
[/\{\{/, { token: '@rematch', switchTo: '@liquidState.root' }],
|
||||||
[/\{\%/, { token: '@rematch', switchTo: '@liquidState.root' }],
|
[/\{\%/, { token: '@rematch', switchTo: '@liquidState.root' }],
|
||||||
[/(<)(\w+)(\/>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
[/(<)(\w+)(\/>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue