Skip to content

Commit

Permalink
Add missing keywords to vim and emacs syntax highlighting (#26196)
Browse files Browse the repository at this point in the history
Adds some missing keywords I noticed in the vim and emacs syntax
highlighters.

Related vscode PR: chapel-lang/chapel-vscode#21

[Reviewed by @lydia-duncan  and @DanilaFe]
  • Loading branch information
jabraham17 authored Nov 4, 2024
2 parents a976d69 + aa5bacf commit 7a8df7f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions highlight/emacs/chpl-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ not the type face."
chpl '("as"
"const" "config"
"except" "export" "extern"
"import" "inline" "iter"
"implements" "import" "include" "inline" "iter"
"lambda"
"module"
"only" "operator" "override"
Expand All @@ -110,11 +110,11 @@ will be handled.
Note that presence on this list does not automatically treat the
following identifier as a type; the keyword must also be present on
`c-type-prefix-kwds' or `c-type-list-kwds' to accomplish that."
chpl '("class" "record" "union"))
chpl '("class" "record" "union" "interface"))

(c-lang-defconst c-type-start-kwds
"Keywords that can start a type."
chpl '("class" "enum" "record" "type" "union"))
chpl '("class" "enum" "record" "type" "union" "interface"))

;; Type aliases
(c-lang-defconst c-typedef-decl-kwds
Expand Down
2 changes: 1 addition & 1 deletion highlight/vim/syntax/chpl.vim
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ endif

" Chapel extensions
syn keyword chplStatement break return continue compilerWarning
syn keyword chplStatement new delete this these super use except only require import
syn keyword chplStatement new delete this these super use except only require import include
syn keyword chplStatement noinit init postinit deinit
syn keyword chplStatement manage implements
syn keyword chplStatement as module yield compilerError zip
Expand Down

0 comments on commit 7a8df7f

Please sign in to comment.