Comments (5)
Thanks for reporting this. There are two issues that prevent your syntax rules from working.
First, you have to add coqprime
to the coqTerm
syntax group since most of the top-level syntax rules use contains=@coqTerm
.
syn cluster coqTerm add=coqprime
Second, forall
and fun
are defined as keyword
s in Coqtail's syntax/coq.vim
, which have higher priority than match
es (:h syn-keyword
). As far as I know, the only way to have your rules take precedence is to also define them as keyword
s.
syn keyword coqprime forall conceal cchar=∀
syn keyword coqprime exists conceal cchar=∃
syn keyword coqprime fun conceal cchar=λ
from coqtail.
Thanks for your help. I had a suspicion about the latter "keyword" priority vs. match part, but I had no idea about syntax groups/clusters. Thanks for showing me, and thanks for teaching me about syntax groups!
from coqtail.
Oh: there is a funny issue now where the concealed symbols have Normal
bg when they instead should have CoqtailChecked
:
![Screen Shot 2023-11-06 at 2 54 30 PM](https://private-user-images.githubusercontent.com/44309097/280868422-41c0534c-e494-48ee-b1f7-0ba9f420b995.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQwMTcwOTYsIm5iZiI6MTcyNDAxNjc5NiwicGF0aCI6Ii80NDMwOTA5Ny8yODA4Njg0MjItNDFjMDUzNGMtZTQ5NC00OGVlLWIxZjctMGJhOWY0MjBiOTk1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDIxMzMxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI3NmIyZmRkOThlYmExZTllYzdlMjk2MjUxODc3YzkyZGViZWNiNTNiYWIzMmQxOGMzMDQ2NGMxOWI3NzI1OTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.fwvwk-0kbiNgdDUmPGrwtPa6nJIwSgMaorP4nbdzxRQ)
I have yet to look into this but might you know how to resolve this?
from coqtail.
I'm not sure how or if there's a way to fix that. The CoqtailChecked
highlighting is added with matchadd
, which the Vim docs say should always have priority over syntax
highlighting (:hi
), but it seems like conceal may work differently. I found these links confirming other people have this issue, but no solutions as far as I can tell.
https://stackoverflow.com/questions/24131474/can-i-fix-conceal-highlight-group-background-in-highlighted-lines
https://vi.stackexchange.com/questions/26742/how-to-overwrite-the-conceal-background-color-with-line-color
from coqtail.
I see, thanks! I think I will stick with not concealing; I don't even know how I got so committed to this rabbithole in the first place. Thanks for your help.
from coqtail.
Related Issues (20)
- Formatting comments (e.g. using gqq) does not work correctly HOT 1
- coqtail hangs on first command with `-noinit`
- Plugin does not load; WSL2 Ubuntu HOT 2
- Set Firstorder Solver idtac. HOT 1
- Feature Request: option to omit proofs when scripting (auto-admit) HOT 1
- [Syntax] Is there a lack of support for math symbol shortcuts? HOT 2
- Detach panels from neovim instance HOT 3
- Unexpected error when debugging Unicoq HOT 2
- Coqtail doesn't recognize the option `-arg "-w all"`
- Coqtail does not officially support your version of Coq (8.19.0) HOT 7
- Feature: better support for dune HOT 4
- :Coq Set Printing Width not persistent HOT 1
- Comments inside of strings are not highlighted correctly
- Error on some large operations HOT 4
- Wrong syntax highlight for `Structure` HOT 2
- :CoqJumpToEnd hangs neovim if Coqtail hasn't been fired yet. HOT 2
- Running vim without filename: E492: Not an editor command: CoqStart HOT 3
- `:CoqGotoDef` Broken for Local Definitions with No `.vo`
- race between coqtail#start and CoqToLine HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coqtail.