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.

Potential conflict in grammar rule order? #38

@irrationalistic

Description

@irrationalistic

I'm not sure if this is the right place to check in on this issue.

I've posted to the language repo in question: devongovett/atom-jade#16 (comment)

I've also posted to the atom discussion board: https://discuss.atom.io/t/conflicts-in-grammar-files-example-jade/15254

The overall problem is that, in the Jade grammar (which does work in Sublime Text), there is a rule towards the bottom of the set (https://github.com/devongovett/atom-jade/blob/master/grammars/jade.cson#L258) that is a sort of catch-all fallback. Except that it catches things that were already matched from what I can tell! By commenting that rule out, jade handles comments properly in the highlighter. With that rule, comments in Jade are read as generic tags instead.

As @lee-dohm mentions in the discussion board, he hasn't come across anything that dictates that rules should apply in any order, so if that's the case, any idea why this would work in Sublime but not in Atom? I'm sure it's possible to adjust that rule to be more specific, just want to see if this is a strange issue in the parser. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions