Skip to content

simplify/fix regexes for font locking etc#3

Open
rntz wants to merge 3 commits intojcaw:masterfrom
rntz:master
Open

simplify/fix regexes for font locking etc#3
rntz wants to merge 3 commits intojcaw:masterfrom
rntz:master

Conversation

@rntz
Copy link

@rntz rntz commented Sep 9, 2021

The regex for speech commands wasn't matching ones that used * or +. I decided to simplify rather than just adding them, and match any unindented line with a colon (but keeping your exclusion of settings/tag/action blocks by excluding letters-immediately-followed-by-left-paren).


;; Matches keys that are function calls, e.g will match "action" in:
;; action(edit.zoom_in): key(ctrl-+)
(cons "^\\([a-zA-Z0-9_-.]*\\)(" '(1 font-lock-type-face t))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a mistake in the original? If not, I don't understand what it is supposed to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant