Skip to content

Commit

Permalink
update editor configs for rec keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
byorgey committed Jun 6, 2024
1 parent b023c5c commit faeb898
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion editors/emacs/swarm-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
"Regexp that recognizes types (all uppercase strings are supposed to be types) in swarm language.")

(defvar swarm-mode-keywords-regexp
(concat "\\b" (regexp-opt '("def" "tydef" "end" "let" "in" "require") t) "\\b")
(concat "\\b" (regexp-opt '("def" "tydef" "rec" "end" "let" "in" "require") t) "\\b")
"Regexp that recognizes keywords in swarm language.")

(defvar swarm-font-lock-keywords
Expand Down
2 changes: 1 addition & 1 deletion editors/vim/swarm.vim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
syn keyword Keyword def tydef end let in require
syn keyword Keyword def tydef rec end let in require
syn keyword Builtins self parent base if inl inr case fst snd force undefined fail not format chars split charat tochar key
syn keyword Command noop wait selfdestruct move backup volume path push stride turn grab harvest sow ignite place ping give equip unequip make has equipped count drill use build salvage reprogram say listen log view appear create halt time scout whereami waypoint structure floorplan hastag tagmembers detect resonate density sniff chirp watch surveil heading blocked scan upload ishere isempty meet meetall whoami setname random run return try swap atomic instant installkeyhandler teleport as robotnamed robotnumbered knows
syn keyword Direction east north west south down forward left back right
Expand Down

0 comments on commit faeb898

Please sign in to comment.