Skip to content

Commit

Permalink
add basic vhdl support (#207)
Browse files Browse the repository at this point in the history
closes #203
  • Loading branch information
jacktasia authored Feb 25, 2018
1 parent 78e325e commit 65b9a3a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ There is currently basic support for the following languages:
* Java
* JavaScript
* Julia
* LaTeX
* Lua
* Objective-C
* OCaml
Expand All @@ -49,6 +50,7 @@ There is currently basic support for the following languages:
* Scala
* Scheme
* Swift
* VHDL

If you have any issues with the existing languages, or you want support for another one, then please [open an issue](https://github.com/jacktasia/dumb-jump/issues). PRs are also welcome. If you'd like to add a language these PRs for [lua](https://github.com/jacktasia/dumb-jump/pull/33) and [rust](https://github.com/jacktasia/dumb-jump/pull/57) are good examples.

Expand Down
19 changes: 19 additions & 0 deletions dumb-jump.el
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,22 @@ or most optimal searcher."
"functor test (T:TEST) ="
"functor test(T:TEST) ="))

;; vhdl
(:type "type" :supports ("ag" "grep" "rg" "git-grep") :language "vhdl"
:regex "\\s*type\\s+\\bJJJ\\b"
:tests ("type test is" "type test is")
:not ("type testing is" "type test2 is"))

(:type "type" :supports ("ag" "grep" "rg" "git-grep") :language "vhdl"
:regex "\\s*constant\\s+\\bJJJ\\b"
:tests ("constant test :" "constant test:")
:not ("constant testing " "constant test2:"))

(:type "function" :supports ("ag" "grep" "rg" "git-grep") :language "vhdl"
:regex "function\\s*\"?JJJ\"?\\s*\\\("
:tests ("function test(signal)" "function test (signal)" "function \"test\" (signal)")
:not ("function testing(signal"))

;; latex
(:type "command" :supports ("ag" "grep" "rg" "git-grep") :language "tex"
:regex "\\\\.*newcommand\\\*?\\s*\\\{\\s*(\\\\)JJJ\\s*}"
Expand Down Expand Up @@ -1162,6 +1178,8 @@ or most optimal searcher."
(:language "elixir" :ext "exs" :agtype "elixir" :rgtype "elixir")
(:language "elixir" :ext "eex" :agtype "elixir" :rgtype "elixir")
(:language "erlang" :ext "erl" :agtype "erlang" :rgtype "erlang")
(:language "vhdl" :ext "vhd" :agtype "vhdl" :rgtype "vhdl")
(:language "vhdl" :ext "vhdl" :agtype "vhdl" :rgtype "vhdl")
(:language "scss" :ext "scss" :agtype "css" :rgtype "css"))

"Mapping of programming language(s) to file extensions."
Expand Down Expand Up @@ -1749,6 +1767,7 @@ current file."
(:comment "#" :language "elixir")
(:comment "%" :language "erlang")
(:comment "%" :language "tex")
(:comment "--" :language "vhdl")
(:comment "//" :language "scss"))
"List of one-line comments organized by language."
:group 'dumb-jump
Expand Down

0 comments on commit 65b9a3a

Please sign in to comment.