Add .tscn support, bump minimum required version, update the README

This commit is contained in:
Oliver Frank
2020-01-15 09:13:26 -08:00
committed by Nathan Lovato
parent c5e49b6e8f
commit 6f1fe6d392
2 changed files with 17 additions and 5 deletions

View File

@@ -28,13 +28,27 @@ To install it:
dotspacemacs-additional-packages '((gdscript-mode :location local))
```
1. In your user-config function, require the package.
3. In your user-config function, require the package.
```lisp
(defun dotspacemacs/user-config ()
(require 'gdscript-mode))
```
### Installing in Doom Emacs ###
1. Add the following line to your .doom.d/packages.el file
```lisp
(package! gdscript-mode :recipe (:host github :repo "GDQuest/emacs-gdscript-mode"))
```
2. Require the package in your .doom.d/config.el file
```lisp
(require 'gdscript-mode)
```
## Available features ##
- Syntax highlighting for all built-in functions and classes in Godot 3.2

View File

@@ -2,11 +2,12 @@
;; URL: https://github.com/GDQuest/emacs-gdscript-mode
;; Version: 202001141-git
(add-to-list 'auto-mode-alist '("\\.gd\\'" . gdscript-mode))
(add-to-list 'auto-mode-alist '("\\.tscn\\'" . conf-toml-mode))
(defgroup gdscript nil
"GDScript language support for Emacs."
:group 'languages
:version "26.1"
:version "27"
:link '(emacs-commentary-link "gdscript"))
(defvar gdscript-mode-map (let ((map (make-sparse-keymap)))
@@ -22,7 +23,6 @@
map)
"Keymap for `gdscript-mode'.")
;; Lists of keywords in the language
(defvar gdscript-keywords '("if" "elif" "else" "for" "do" "while" "match"
"switch" "case" "break" "continue" "pass"
@@ -249,9 +249,7 @@
(defun regex-maker (words)
(regexp-opt words 'symbols))
;;; Font-lock and syntax
(eval-and-compile (defun gdscript-syntax--context-compiler-macro (form type &optional syntax-ppss)
(pcase type
(''comment