Timeline for Syntax highlighting of keywords only if following builtin
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 29, 2020 at 0:17 | vote | accept | jamesmaj | ||
Aug 28, 2020 at 8:20 | answer | added | Fran Burstall | timeline score: 1 | |
Aug 28, 2020 at 6:48 | comment | added | Lindydancer |
One way to solve this is to use an "anchored" font-lock keyword. This is like a search-within-a-search, where func etc. would be main regexp and high etc. the secondary. By default, the secondary is matched from the point to the end of the line, but it's possible to adjust the scope. Another is to search for high using code and add an extra check that it is in the correct scope.
|
|
Aug 28, 2020 at 3:08 | history | asked | jamesmaj | CC BY-SA 4.0 |