-
Notifications
You must be signed in to change notification settings - Fork 50
Fix: font lock updates #111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Should be a free merge. How about |
"case" "branch" | ||
"ecase" "ebranch" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These may have been since replaced by match
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My mistake, these are from hyrule
.
@@ -176,6 +176,7 @@ | |||
"max" | |||
"memoryview" | |||
"min" | |||
"match" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that the whole list can be replaced by reusing python mode:
(defconst hy-font-lock--python-builtins
(seq-concatenate 'list
(seq-copy python--treesit-builtins)
'("--package--"
"--import--"
"--all--"
"--doc--"
"--name--"))
"Builtin names available in Python normally.")
@@ -219,17 +220,25 @@ | |||
|
|||
(defconst hy-font-lock--exceptions | |||
'("ArithmeticError" "AssertionError" "AttributeError" "BaseException" | |||
"DeprecationWarning" "EOFError" "EnvironmentError" "Exception" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Constants and exceptions as well can be reused.
;;;; Constants
(defconst hy-font-lock--constants (seq-copy python--treesit-constants)
"Constant names in Hy.")
;;;; Exceptions
(defconst hy-font-lock--exceptions (seq-copy python--treesit-exceptions)
"Exception and error names.")
No description provided.