summaryrefslogtreecommitdiffstats
path: root/signal.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-08-30 06:51:52 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-08-30 06:51:52 -0700
commitebb8335d74b05c0f8f6b166b02348939646a4be9 (patch)
treeef2e27fc65b2335d70315548ee2686309af8dd4d /signal.h
parentceac568650dfe4234d3da21fa75bedeaf76dfbdd (diff)
downloadtxr-ebb8335d74b05c0f8f6b166b02348939646a4be9.tar.gz
txr-ebb8335d74b05c0f8f6b166b02348939646a4be9.tar.bz2
txr-ebb8335d74b05c0f8f6b166b02348939646a4be9.zip
vim: tweak @ handling.
I noticed that in some Vim color schemes, the @ in @( ) is colored the same as the parentheses, whereas in @abc, it is colored differently from the identifier (and different from parentheses). This patch fixes things so that the @ sigil is in the Special category, rather than Delimiter, almost everywhere. * genvim.txr (txr-elem): New variable, for holding names of regions which follow the @ in the TXR language. Used in definition of txr_at. (bvar, dir, list): Remove the txr_mlist and txr_mbracket regions. (txr_at): New match group defined, which matches the @ sigil in TXR, followed by various elements using the nextgroup mechanism. txr_at is already assigned to a highlight category via a previously dangling entry. (txr_error,txr_atat,txr_comment,txr_contin, txr_char,txr_error,txr_char,txr_regdir,txr_variable, txr_splicevar,txr_metanum,txr_directive): These match groups don't match the leading @ sigil any more and are marked contained. They activate as the nextgroup items in txr_at, allowing them to be colored differently. (tl_error): New group. split off from txr_error. We don't want to to recognize this category after the @ in TXR because @#... is the old-style comment. (tl_ident): Don't try to match leading @. This is useless because there is a more specific match via txr_metaat later. (txr_quote, txr_metaat): Mark these not contained in Lisp so they activate at the top level. (txr_directive): Don't match leading @. This now activates as a nextgroup item in txr_at. Thus directives can have a differently colored @. (txr_mlist, txr_mbracket): These are now unconditionally contained, and are used only in txr_quasilit. I am otherwise leaving quasiliterals alone in this patch; it will need the same treatment for @ to be colored seprately inside quasiliterals.
Diffstat (limited to 'signal.h')
0 files changed, 0 insertions, 0 deletions