Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit bf80970

Browse files
committed
Test
1 parent a77aa2f commit bf80970

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

spec/tree-sitter-spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ describe('Tree-sitter HTML grammar', () => {
2020
</html>
2121
`)
2222

23+
grammar = atom.grammars.grammarForScopeName('text.html.basic')
24+
25+
lines = grammar.tokenizeLines(editor.getText())
26+
27+
expect(lines).toBe([])
28+
2329
// Tag punctuation.
2430
expect(editor.scopeDescriptorForBufferPosition([0, 0]).toString()).toBe(
2531
'.text.html.basic .source.html .punctuation.definition.tag.begin'

test.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<html lang="en">
2+
<head>
3+
<meta charset='utf-8'>
4+
<meta name='"' content="This'll test single and double quotes.">
5+
</head>
6+
<body>
7+
</html>

0 commit comments

Comments
 (0)