Skip to content

Native Syntax Highlighting - Tree Sitter: TS scope map path - #676

Merged
bryphe merged 11 commits into
masterfrom
extension/grammar/add-tree-sitter-path-to-grammar
Aug 22, 2019
Merged

bryphe merged 11 commits into
masterfrom
extension/grammar/add-tree-sitter-path-to-grammar

Conversation

@bryphe

@bryphe bryphe commented Aug 21, 2019

Copy link
Copy Markdown
Member

This adds an extension to the grammar contribution section, allowing us to specify a path to a file that has tree-sitter scope mappings. When this is provided, we'll prefer tree-sitter parsing over textmate parsing.

@bryphe bryphe changed the title [WIP] Native Syntax Highlighting - Tree Sitter: TS scope map path Native Syntax Highlighting - Tree Sitter: TS scope map path Aug 22, 2019
@bryphe
bryphe merged commit 4f06341 into master Aug 22, 2019
@bryphe
bryphe deleted the extension/grammar/add-tree-sitter-path-to-grammar branch August 22, 2019 13:30
benox3 pushed a commit to benox3/oni2 that referenced this pull request Aug 27, 2019
* Add tree-sitter path as an extension to grammar contribution

* Remap tree sitter path too

* Remap tree-sitter grammar path

* Add tree-sitter-json.json

* Add README

* Formatting

* Get scope selectors to match

* Get json parsing working

* Formatting

* Get test green again

* Formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant