Skip to content

Commit

Permalink
property keys: don't recognize spaces before colon
Browse files Browse the repository at this point in the history
Otherwise this rule conflicts with the tertary operator
  • Loading branch information
nilclass committed Sep 22, 2023
1 parent 913ec1f commit 1ef68ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slint-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
(defconst slint-font-lock-keywords
(list
;; Property key
'("\\(\\w+\\)\\s-*:" 1 font-lock-variable-name-face)
'("\\(\\w+\\):" 1 font-lock-variable-name-face)
;; Component names (starting with capital letter)
'("\\([A-Z]\\w*\\)" . font-lock-type-face)
;; Function call, function signature, @image-url syntax
Expand Down

0 comments on commit 1ef68ca

Please sign in to comment.