92ca421222
Verilog mode was always supported by Codemirror, but support for VHDL was only added in recent Codemirror version, so that we can only include it now. Bug: Issue 3447 Change-Id: I91028acf3f41f51981f710db00bee9a8c9398aee
88 lines
1.5 KiB
Plaintext
88 lines
1.5 KiB
Plaintext
CM_CSS = [
|
|
'lib/codemirror.css',
|
|
'addon/dialog/dialog.css',
|
|
'addon/scroll/simplescrollbars.css',
|
|
'addon/search/matchesonscrollbar.css',
|
|
]
|
|
|
|
CM_JS = [
|
|
'lib/codemirror.js',
|
|
'mode/meta.js',
|
|
'keymap/vim.js',
|
|
'keymap/emacs.js',
|
|
]
|
|
|
|
CM_ADDONS = [
|
|
'dialog/dialog.js',
|
|
'edit/closebrackets.js',
|
|
'edit/matchbrackets.js',
|
|
'edit/trailingspace.js',
|
|
'scroll/annotatescrollbar.js',
|
|
'scroll/simplescrollbars.js',
|
|
'search/matchesonscrollbar.js',
|
|
'search/searchcursor.js',
|
|
'search/search.js',
|
|
'selection/mark-selection.js',
|
|
'mode/overlay.js',
|
|
'mode/simple.js',
|
|
]
|
|
|
|
# Available themes must be enumerated here,
|
|
# in gerrit-extension-api/src/main/java/com/google/gerrit/extensions/common/Theme.java,
|
|
# in gerrit-gwtui/src/main/java/net/codemirror/theme/Themes.java
|
|
CM_THEMES = [
|
|
'eclipse',
|
|
'elegant',
|
|
'midnight',
|
|
'neat',
|
|
'night',
|
|
'twilight',
|
|
]
|
|
|
|
# Available modes must be enumerated here,
|
|
# in gerrit-gwtui/src/main/java/net/codemirror/mode/Modes.java,
|
|
# and in CodeMirror's own mode/meta.js script.
|
|
CM_MODES = [
|
|
'clike',
|
|
'clojure',
|
|
'coffeescript',
|
|
'commonlisp',
|
|
'css',
|
|
'd',
|
|
'dart',
|
|
'diff',
|
|
'dockerfile',
|
|
'dtd',
|
|
'erlang',
|
|
'gas',
|
|
'gfm',
|
|
'go',
|
|
'groovy',
|
|
'haskell',
|
|
'htmlmixed',
|
|
'javascript',
|
|
'lua',
|
|
'markdown',
|
|
'perl',
|
|
'php',
|
|
'pig',
|
|
'properties',
|
|
'puppet',
|
|
'python',
|
|
'r',
|
|
'rst',
|
|
'ruby',
|
|
'scheme',
|
|
'shell',
|
|
'smalltalk',
|
|
'soy',
|
|
'sql',
|
|
'stex',
|
|
'tcl',
|
|
'velocity',
|
|
'verilog',
|
|
'vhdl',
|
|
'xml',
|
|
'yaml',
|
|
]
|