Skip to content

Commit

Permalink
Updates to verilog-ts-mode: imenu, hideshow, font-lock and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gmlarumbe committed Aug 12, 2023
1 parent e10d179 commit ff0ccb5
Show file tree
Hide file tree
Showing 11 changed files with 1,958 additions and 1,770 deletions.
634 changes: 317 additions & 317 deletions test/files/faceup/axi_demux.sv.ts.faceup

Large diffs are not rendered by default.

1,732 changes: 866 additions & 866 deletions test/files/faceup/axi_test.sv.ts.faceup

Large diffs are not rendered by default.

74 changes: 37 additions & 37 deletions test/files/faceup/instances.sv.ts.faceup

Large diffs are not rendered by default.

80 changes: 40 additions & 40 deletions test/files/faceup/tb_program.sv.ts.faceup

Large diffs are not rendered by default.

220 changes: 110 additions & 110 deletions test/files/faceup/ucontroller.sv.ts.faceup

Large diffs are not rendered by default.

420 changes: 210 additions & 210 deletions test/files/faceup/uvm_component.svh.ts.faceup

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions test/verilog-ext-tests-setup-faces.el
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,28 @@
(set-face-attribute 'verilog-ext-font-lock-uvm-classes-face nil :foreground "light blue")
(set-face-attribute 'verilog-ext-font-lock-xilinx-attributes-face nil :foreground "orange1")

(set-face-attribute 'verilog-ts-font-lock-grouping-keywords-face nil :foreground "dark olive green")
(set-face-attribute 'verilog-ts-font-lock-punctuation-face nil :foreground "burlywood")
(set-face-attribute 'verilog-ts-font-lock-operator-face nil :foreground "burlywood" :weight 'extra-bold)
(set-face-attribute 'verilog-ts-font-lock-brackets-face nil :foreground "goldenrod")
(set-face-attribute 'verilog-ts-font-lock-parenthesis-face nil :foreground "dark goldenrod")
(set-face-attribute 'verilog-ts-font-lock-curly-braces-face nil :foreground "DarkGoldenrod2")
(set-face-attribute 'verilog-ts-font-lock-port-connection-face nil :foreground "bisque2")
(set-face-attribute 'verilog-ts-font-lock-dot-name-face nil :foreground "gray70")
(set-face-attribute 'verilog-ts-font-lock-brackets-content-face nil :foreground "yellow green")
(set-face-attribute 'verilog-ts-font-lock-width-num-face nil :foreground "chartreuse2")
(set-face-attribute 'verilog-ts-font-lock-width-type-face nil :foreground "sea green" :weight 'bold)
(set-face-attribute 'verilog-ts-font-lock-module-face nil :foreground "green1")
(set-face-attribute 'verilog-ts-font-lock-instance-face nil :foreground "medium spring green")
(set-face-attribute 'verilog-ts-font-lock-time-event-face nil :foreground "deep sky blue" :weight 'bold)
(set-face-attribute 'verilog-ts-font-lock-time-unit-face nil :foreground "light steel blue")
(set-face-attribute 'verilog-ts-font-lock-preprocessor-face nil :foreground "pale goldenrod")
(set-face-attribute 'verilog-ts-font-lock-modport-face nil :foreground "light blue")
(set-face-attribute 'verilog-ts-font-lock-direction-face nil :foreground "RosyBrown3")
(set-face-attribute 'verilog-ts-font-lock-translate-off-face nil :background "gray20" :slant 'italic)
(set-face-attribute 'verilog-ts-font-lock-attribute-face nil :foreground "orange1")


(provide 'verilog-ext-tests-setup-faces)

;;; verilog-ext-tests-setup-faces.el ends here
7 changes: 5 additions & 2 deletions test/verilog-ext-tests-setup-straight.el
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@
;;;; Setup package
(message "Installing and setting up verilog-ext")
(use-package verilog-ext
:straight (:host github :repo "gmlarumbe/verilog-ext"
:files (:defaults "snippets" "ts-mode/*.el"))
:after verilog-mode
:hook ((verilog-mode . verilog-ext-mode))
:demand
Expand All @@ -106,6 +104,11 @@
(setq treesit-font-lock-level 4))))


(use-package verilog-ts-mode
:straight (:host github :repo "gmlarumbe/verilog-ext"
:files ("ts-mode/verilog-ts-mode.el")))


(provide 'verilog-ext-tests-setup-straight)

;;; verilog-ext-tests-setup-straight.el ends here
Loading

0 comments on commit ff0ccb5

Please sign in to comment.