Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Implement support for multi-line rules in Nano Highlighter and Linter #319

Open
jspenguin2017 opened this issue Apr 3, 2020 · 1 comment

Comments

@jspenguin2017
Copy link
Member

jspenguin2017 commented Apr 3, 2020

Highlighting is quite tricky since this is a valid rule:

@ \
    @ \
    | \
    |example.com \
    ^

uBO uses JavaScript for tokenization, but Ace uses RegExp, which makes this difficult.


Beside highlighting, some linting (missing space before slash, missing four spaces on the next line, etc.) would also be useful.

@jspenguin2017 jspenguin2017 changed the title Implement support for multi-line rules in Nano Highlighter Implement support for multi-line rules in Nano Highlighter and Linter Apr 4, 2020
@jspenguin2017
Copy link
Member Author

@KonoromiHimaries What do you mean? Can you elaborate?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant