Skip to content

Commit ba13431

Browse files
committed
Add highlighting for 30 more mocha.el keywords
We already had about 10, this commit finishes the job by adding the rest which were noticed while examining `mocha.el`'s codebase. References: scottaj/mocha.el#63
1 parent 055ca5e commit ba13431

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ This project adheres to [Semantic Versioning](http://semver.org).
66
[Unpublished]: ../../compare/v1.3.0...HEAD
77

88

9+
[Unpublished]
10+
------------------------------------------------------------------------
11+
* __Added:__ Highlighting for another 30 keywords used by [`mocha.el`][]
12+
13+
14+
915
[v1.3.0]
1016
------------------------------------------------------------------------
1117
**September 6th, 2018**
@@ -74,3 +80,4 @@ Initial release. Adds editor commands and highlighting for Emacs Lisp.
7480
[v1.0.0]: https://github.com/Alhadis/language-emacs-lisp/releases/v1.0.0
7581
[2.3.3.2]: http://www.hep.by/gnu/elisp/General-Escape-Syntax.html
7682
[YASnippet]: http://joaotavora.github.io/yasnippet
83+
[`mocha.el`]: https://github.com/scottaj/mocha.el

grammars/emacs-lisp.cson

+15-5
Original file line numberDiff line numberDiff line change
@@ -985,11 +985,13 @@ repository:
985985
|mc\\/sort-regions|mc\\/toggle-cursor-on-click|mc\\/unmark-next-like-this|mc\\/unmark-previous-like-this|mc\\/vertical-align-with-space
986986
|mc\\/vertical-align|menu-bar-bottom-and-right-window-divider|menu-bar-bottom-window-divider|menu-bar-display-line-numbers-mode
987987
|menu-bar-goto-uses-etags-p|menu-bar-no-window-divider|menu-bar-right-window-divider|menu-bar-window-divider-customize|mhtml-mode|midnight-mode
988-
|minibuffer-maybe-quote-filename|minibuffer-prompt-properties--setter|mm-images-in-region-p|mocha-debug-at-point|mocha-debug-file|mocha-debug-project
989-
|mocha-test-at-point|mocha-test-file|mocha-test-project|mocha-toggle-imenu-function|mode-line-default-help-echo|module-function-p|module-load
990-
|mouse--click-1-maybe-follows-link|mouse-absolute-pixel-position|mouse-drag-and-drop-region|mouse-drag-bottom-edge|mouse-drag-bottom-left-corner
991-
|mouse-drag-bottom-right-corner|mouse-drag-frame|mouse-drag-left-edge|mouse-drag-right-edge|mouse-drag-top-edge|mouse-drag-top-left-corner
992-
|mouse-drag-top-right-corner|mouse-resize-frame|move-text--at-first-line-p)
988+
|minibuffer-maybe-quote-filename|minibuffer-prompt-properties--setter|mm-images-in-region-p|mocha--get-callsite-name|mocha-attach-indium
989+
|mocha-check-debugger|mocha-compilation-filter|mocha-debug-at-point|mocha-debug-file|mocha-debug-project|mocha-debugger-get|mocha-debugger-name-p
990+
|mocha-debug|mocha-find-current-test|mocha-find-project-root|mocha-generate-command|mocha-list-of-strings-p|mocha-make-imenu-alist|mocha-opts-file
991+
|mocha-realgud:nodejs-attach|mocha-run|mocha-test-at-point|mocha-test-file|mocha-test-project|mocha-toggle-imenu-function|mocha-walk-up-to-it
992+
|mode-line-default-help-echo|module-function-p|module-load|mouse--click-1-maybe-follows-link|mouse-absolute-pixel-position|mouse-drag-and-drop-region
993+
|mouse-drag-bottom-edge|mouse-drag-bottom-left-corner|mouse-drag-bottom-right-corner|mouse-drag-frame|mouse-drag-left-edge|mouse-drag-right-edge
994+
|mouse-drag-top-edge|mouse-drag-top-left-corner|mouse-drag-top-right-corner|mouse-resize-frame|move-text--at-first-line-p)
993995
(?=[\\s()]|$)"""
994996
},{
995997
# [Part 5 / 7]
@@ -1473,6 +1475,14 @@ repository:
14731475
(?=[\\s()]|$)"""
14741476
},{
14751477

1478+
# Various support variables
1479+
name: "support.variable.emacs.lisp"
1480+
match: """(?x)(?<=[()]|^)(?:
1481+
mocha--other-js2-imenu-function|mocha-command|mocha-debug-port|mocha-debuggers|mocha-debugger|mocha-environment-variables|mocha-imenu-functions
1482+
|mocha-options|mocha-project-test-directory|mocha-reporter|mocha-test-definition-nodes|mocha-which-node|node-error-regexp-alist|node-error-regexp)
1483+
(?=[\\s()]|$)"""
1484+
},{
1485+
14761486
# Common Lisp compatibility library
14771487
name: "support.function.cl-lib.emacs.lisp"
14781488
match: """(?x)(?<=[()]|^)(?:

0 commit comments

Comments
 (0)