Merge pull request #46 from francogarcia/function_highlighting

Add syntax highlighting for function calls
This commit is contained in:
Nathan Lovato
2020-04-03 19:12:26 -06:00
committed by GitHub
2 changed files with 7 additions and 1 deletions

View File

@@ -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

View File

@@ -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))