summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorAlasdair Armstrong2018-04-06 14:47:12 +0100
committerAlasdair Armstrong2018-04-06 14:47:12 +0100
commit922fec6b584a9de72c42036fbb415fa3e06a7a4e (patch)
treea09c4c9411e7e47f48a5e14ec1850542c87eb23c /editors
parent650d7affe4704959d177579957bef749c5499158 (diff)
Update sail.tex for wip latex output
Fix a bug in initial check which caused X() = y to expect an additional parameter. Some tweaks to sail2 emacs mode
Diffstat (limited to 'editors')
-rw-r--r--editors/sail2-mode.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/editors/sail2-mode.el b/editors/sail2-mode.el
index 60cd762e..76024830 100644
--- a/editors/sail2-mode.el
+++ b/editors/sail2-mode.el
@@ -30,6 +30,8 @@
("~" . font-lock-negation-char-face)
("\'[a-zA-Z0-9_]+" . font-lock-variable-name-face)
("\\([a-zA-Z0-9_]+\\)(" 1 font-lock-function-name-face)
+ ("function \\([a-zA-Z0-9_]+\\)" 1 font-lock-function-name-face)
+ ("val \\([a-zA-Z0-9_]+\\)" 1 font-lock-function-name-face)
("\\_<\\([0-9]+\\|0b[0-9_]+\\|0x[0-9a-fA-F_]+\\|true\\|false\\|bitone\\|bitzero\\)\\_>\\|()" . font-lock-constant-face)))
(defconst sail2-mode-syntax-table