mirror of
https://github.com/godotengine/emacs-gdscript-mode.git
synced 2026-01-05 22:10:05 +03:00
Merge pull request #46 from francogarcia/function_highlighting
Add syntax highlighting for function calls
This commit is contained in:
@@ -10,6 +10,7 @@ _Currently in development._
|
||||
|
||||
- Added a command to insert a path to a project file, either using `project-find-file` if `projectile` is available, otherwise with `find-file`.
|
||||
- Added a command to format a selected region with `gdformat`.
|
||||
- Added syntax highlighting for function calls.
|
||||
|
||||
### Bug fixes
|
||||
|
||||
|
||||
@@ -75,7 +75,12 @@
|
||||
(or "var" "const")
|
||||
(1+ space)
|
||||
(group (1+ (or word ?_))))
|
||||
(1 font-lock-variable-name-face))))
|
||||
(1 font-lock-variable-name-face))
|
||||
;; Function call
|
||||
(,(rx (group (1+ (or word ?_)))
|
||||
(0+ space)
|
||||
"(")
|
||||
(1 font-lock-function-name-face))))
|
||||
|
||||
(defvar gdscript-syntax-table (make-syntax-table))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user