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

Syntax highlighting for language-todo scopes dooesn't work with tree-parser grammar #667

@jonboiser

Description

@jonboiser

Prerequisites

Description

special words that are supposed to be syntax highlighted by the built-in language-todo are not syntax highlighted when using Tree-Sitter.

Screenshots are using the Dracula theme, which gives these words a blue color and italicizes them

Using Tree-Sitter
Screen Shot 2019-12-19 at 1 32 53 PM

Not Using Tree-Sitter
Screen Shot 2019-12-19 at 1 33 03 PM

Steps to Reproduce

  1. Create a JS file with something like // TODO fix me
  2. In Settings > Editor Menu, uncheck "Use Tree Sitter Parsers"
  3. Refresh the editor
  4. In your JS file buffer, TODO will be syntax highlighted (and given the correct css classes for storage.class.type.todo or something like that
  5. In Settings > Editor Menu, check "Use Tree Sitter Parsers"
  6. Refresh the editor
  7. In your JS file buffer, TODO will not be syntax highlighted

Expected behavior:

When viewing a JS file with Tree-Sitter parsers enabled, the special tokens highlighted by language-todo are highlighted

Actual behavior:

No syntax highlighting

Reproduces how often:

100%

Versions

Atom : 1.42.0
Electron: 4.2.7
Chrome : 69.0.3497.128
Node : 10.11.0

MacOS 10.15.2

Additional Information

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions