diff --git a/spec/text-editor-spec.js b/spec/text-editor-spec.js index 832c482a53..18fd19bf83 100644 --- a/spec/text-editor-spec.js +++ b/spec/text-editor-spec.js @@ -8326,11 +8326,11 @@ describe('TextEditor', () => { 'program', 'variable_declaration', 'variable_declarator', - 'function', + 'function_expression', 'statement_block', 'variable_declaration', 'variable_declarator', - 'function', + 'function_expression', 'statement_block', 'while_statement', 'parenthesized_expression', diff --git a/spec/wasm-tree-sitter-language-mode-spec.js b/spec/wasm-tree-sitter-language-mode-spec.js index 0fb41f2473..60aee9b1d6 100644 --- a/spec/wasm-tree-sitter-language-mode-spec.js +++ b/spec/wasm-tree-sitter-language-mode-spec.js @@ -773,7 +773,7 @@ describe('WASMTreeSitterLanguageMode', () => { htmlGrammar = new WASMTreeSitterGrammar(atom.grammars, htmlGrammarPath, tempHtmlConfig); await htmlGrammar.setQueryForTest('highlightsQuery', ` - (fragment) @html + (document) @html (tag_name) @tag (attribute_name) @attr `); @@ -1351,7 +1351,7 @@ describe('WASMTreeSitterLanguageMode', () => { let customHtmlGrammar = new WASMTreeSitterGrammar(atom.grammars, htmlGrammarPath, customHtmlConfig); await htmlGrammar.setQueryForTest('highlightsQuery', ` - (fragment) @html + (document) @html (tag_name) @tag (attribute_name) @attr `); @@ -1399,7 +1399,7 @@ describe('WASMTreeSitterLanguageMode', () => { let customHtmlGrammar = new WASMTreeSitterGrammar(atom.grammars, htmlGrammarPath, customHtmlConfig); await htmlGrammar.setQueryForTest('highlightsQuery', ` - (fragment) @html + (document) @html (tag_name) @tag (attribute_name) @attr `); @@ -1450,7 +1450,7 @@ describe('WASMTreeSitterLanguageMode', () => { let customHtmlGrammar = new WASMTreeSitterGrammar(atom.grammars, htmlGrammarPath, customHtmlConfig); await htmlGrammar.setQueryForTest('highlightsQuery', ` - (fragment) @html + (document) @html (tag_name) @tag (attribute_name) @attr `); @@ -1503,7 +1503,7 @@ describe('WASMTreeSitterLanguageMode', () => { let customHtmlGrammar = new WASMTreeSitterGrammar(atom.grammars, htmlGrammarPath, customHtmlConfig); await htmlGrammar.setQueryForTest('highlightsQuery', ` - (fragment) @html + (document) @html (tag_name) @tag (attribute_name) @attr `); @@ -3085,7 +3085,7 @@ describe('WASMTreeSitterLanguageMode', () => { .getScopesArray() ).toEqual([ 'text.html.basic', - 'fragment', + 'document', 'element', 'script_element', 'raw_text', @@ -3093,7 +3093,7 @@ describe('WASMTreeSitterLanguageMode', () => { 'expression_statement', 'call_expression', 'template_string', - 'fragment', + 'document', 'element', 'template_substitution', 'member_expression', @@ -3833,7 +3833,7 @@ describe('WASMTreeSitterLanguageMode', () => { htmlConfig ); await htmlGrammar.setQueryForTest('highlightsQuery', ` - (fragment) @html + (document) @html (tag_name) @tag (attribute_name) @attr `);