diff options
| author | Eli Zaretskii | 2017-09-22 16:40:59 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-09-22 16:40:59 +0300 |
| commit | 51cbd85454f6febb635b806dd759c4d054a43552 (patch) | |
| tree | da112bbb6d31cecbe5f6ac4698f055292b2c41e8 | |
| parent | 0273916618f33ffd56b861cea187e9df337b8e2d (diff) | |
| download | emacs-51cbd85454f6febb635b806dd759c4d054a43552.tar.gz emacs-51cbd85454f6febb635b806dd759c4d054a43552.zip | |
Improve syntax highlighting in bat-mode
* lisp/progmodes/bat-mode.el (bat-font-lock-keywords): Improve
font-locking of environment variables. Suggested by Achim Gratz
<Stromeko@nexgo.de>. (Bug#28311) (Bug#18405)
| -rw-r--r-- | lisp/progmodes/bat-mode.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/bat-mode.el b/lisp/progmodes/bat-mode.el index f4852fe5b6b..e06b8e830b9 100644 --- a/lisp/progmodes/bat-mode.el +++ b/lisp/progmodes/bat-mode.el | |||
| @@ -84,11 +84,11 @@ | |||
| 84 | . 'bat-label-face) | 84 | . 'bat-label-face) |
| 85 | ("\\_<\\(defined\\|set\\)\\_>[ \t]*\\(\\(\\sw\\|\\s_\\)+\\)" | 85 | ("\\_<\\(defined\\|set\\)\\_>[ \t]*\\(\\(\\sw\\|\\s_\\)+\\)" |
| 86 | (2 font-lock-variable-name-face)) | 86 | (2 font-lock-variable-name-face)) |
| 87 | ("%\\(\\(\\sw\\|\\s_\\)+\\)%" | 87 | ("%\\([^% \n]+\\)%?" |
| 88 | (1 font-lock-variable-name-face)) | 88 | (1 font-lock-variable-name-face)) |
| 89 | ("!\\(\\(\\sw\\|\\s_\\)+\\)!" ; delayed-expansion !variable! | 89 | ("!\\([^!% \n]+\\)!?" ; delayed-expansion !variable! |
| 90 | (1 font-lock-variable-name-face)) | 90 | (1 font-lock-variable-name-face)) |
| 91 | ("%%\\(?:~[adfnpstxz]*\\(?:\\$\\(\\(?:\\sw\\|\\s_\\)+\\):\\)?\\)?\\([]!#$&-:?-[_-{}~]\\)" | 91 | ("%%\\(?:~[adfnpstxz]*\\(?:\\$\\(\\(?:\\sw\\|\\s_\\|_\\)+\\):\\)?\\)?\\([]!#$&-:?-[_-{}~]\\)" |
| 92 | (1 font-lock-variable-name-face nil t) ; PATH expansion | 92 | (1 font-lock-variable-name-face nil t) ; PATH expansion |
| 93 | (2 font-lock-variable-name-face)) ; iteration variable or positional parameter | 93 | (2 font-lock-variable-name-face)) ; iteration variable or positional parameter |
| 94 | ("[ =][-/]+\\(\\w+\\)" | 94 | ("[ =][-/]+\\(\\w+\\)" |