banacorn / language-agda

Agda language support for the Atom editor
https://atom.io/packages/language-agda
MIT License
13 stars 5 forks source link

Highlighting delimiters #32

Open zraffer opened 4 years ago

zraffer commented 4 years ago

(not sure to post it here or into tree-sitter counterpart)

The default One Dark scheme does not distinguish delimiters (brackets, punctuation). However there are a few syntax color schemes which does.

Schemes for testing : https://atom.io/themes/oceanic-next https://atom.io/themes/seti-syntax Agda code for testing: https://gist.github.com/zraffer/314e6baada99eb115e4fc9573ede8575#file-test-agda

Currently I see colored brackets () {} as far as : =. It is very good! However I see some symbols in source of language-agda which seemingly should also be colored but it is actually not. Among them are:

banacorn commented 4 years ago

(here's the right place to post this)

Here's what some of delimiters look like under the oceanic-next scheme

截圖 2020-03-17 下午2 24 05

Delimiters like square brackets [] and comma , are not highlighted because Agda don't use them. Users are free to use these symbols as names, that's why they are not highlighted.

But yes, other symbols you mentioned should to be highlighted. Thanks for pointing them out!