Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supporting highlighting of many syntactic elements #18

Open
giordano opened this issue Feb 17, 2021 · 0 comments
Open

Supporting highlighting of many syntactic elements #18

giordano opened this issue Feb 17, 2021 · 0 comments

Comments

@giordano
Copy link
Collaborator

giordano commented Feb 17, 2021

With #17 we now have syntax highlighting for

  1. &-lines
  2. @-lines
  3. protocol lines (#)
  4. comments (also # but different from protocols)
  5. $-lines
  6. linkage lines (||, >>, and <<)
  7. text lines (starting with .*\.)
  8. additionally, we may want to highlight differently special keywords in $-lines (see Syntax highlighting for ATF #1 (comment))

Texmate grammar has plenty of different default syntactic groups/subgroups and we're using a few of them, the problem is that colouring is delegated to themes, over which we have no control. Apparently not even the default themes have a comprehensive coverage of standard Textmate grammar elements, so depending on the theme, some items may not be highlighted, or different elements may have the same colour. Note that apart from comments, all other items can (ab)use most standard syntactic items, ATF isn't really a regular programming language.

One option is to maintain ourselves themes (light and dark?) which cover all syntactic elements we care about

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

No branches or pull requests

2 participants