mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 13:55:41 +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 = {
|
||||
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,
|
||||
|
||||
// TODO support if,else,elseif,for,in and other built in keywords
|
||||
|
||||
brackets: [
|
||||
['<!--', '-->'],
|
||||
['<', '>'],
|
||||
|
|
@ -164,11 +162,9 @@ export const language = <languages.IMonarchLanguage>{
|
|||
symbol: /[=><!]+/,
|
||||
identifier: /[a-zA-Z_][\w]*/,
|
||||
|
||||
// The main tokenizer for our languages
|
||||
tokenizer: {
|
||||
root: [
|
||||
[/\{\%\s*comment\s*\%\}/, 'comment.start.liquid', '@comment'],
|
||||
// [/\{\%\s*raw\s*\%\}/, 'delimiter.tag', '@raw'],
|
||||
[/\{\{/, { token: '@rematch', switchTo: '@liquidState.root' }],
|
||||
[/\{\%/, { token: '@rematch', switchTo: '@liquidState.root' }],
|
||||
[/(<)(\w+)(\/>)/, ['delimiter.html', 'tag.html', 'delimiter.html']],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue