aboutsummaryrefslogtreecommitdiffstats
path: root/syntax
AgeCommit message (Collapse)Author
2018-11-11syntax/dome_key.vim: Add `mode` definition matcherTeddy Wing
2018-11-11syntax/dome_key.vim: Add a section for special key matchersTeddy Wing
2018-11-11syntax/dome_key.vim: Add `cmd` definition line matcherTeddy Wing
2018-11-11syntax/dome_key.vim: Don't highlight non-keywords in `<…>`Teddy Wing
Things like `<asdf>` shouldn't be highlighted.
2018-11-11syntax/dome_key.vim: Add `Nop` to `domeKeySpecialKeyKeyword`Teddy Wing
2018-11-11syntax/dome_key.vim: Fix `domeKeyMapDefinitionAction` not matchingTeddy Wing
Looks like I have to explicitly filter out whitespace. I can't rely on `skipwhite` to do it for me.
2018-11-11syntax/dome_key.vim: Remove unmatched `domeKeyTriggerKeyKeyword`Teddy Wing
Since `Up`, `Play`, and `Down` are also defined in `domeKeySpecialKeyKeyword`, `domeKeyTriggerKeyKeyword` would never get matched. Remove it since it doesn't get used. We already have the `domeKeyDefinitionTrigger` matcher to restrict the possible trigger keywords.
2018-11-11syntax/dome_key.vim: Fix unmatched `domeKeyMapDefinitionTrigger`Teddy Wing
`domeKeyMapDefinitionAction` was taking over the trigger spot since nothing in `domeKeyMapDefinitionTrigger` matched. Thanks vim-scriptease for `zS` to show syntax groups under the cursor.
2018-11-11syntax/dome_key.vim: Put trigger key in `domeKeySpecialKey`Teddy Wing
I guess this worked before for `map` lines because of the `domeKeyDefinitionTrigger` matcher.
2018-11-11syntax/dome_key.vim: Generalise `domeKeyDefinitionTrigger`Teddy Wing
This matcher should be able to work in `map`, `cmd`, and `mode`.
2018-11-11syntax/dome_key.vim: Add more detailed `map` highlightingTeddy Wing
This only works for `map` definitions, but I'll be using what I've learned here for the other map types. * Only highlight `map` if it's on the start of a line * Only highlight `<Up>`, `<Play>`, and `<Down>` in map triggers * Highlight any special key in map actions
2018-11-11Add syntax/dome_key.vimTeddy Wing
Initial syntax highlighting definitions. Highlights: * Comments * map, cmd, mode * Special keys Still some tricky sounding edge cases to handle, but this already takes care of the basics very well.