From 51ed781953bc44bba3c70938aa57b856394cbc88 Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Mon, 27 Feb 2012 14:41:21 -0800 Subject: updating to codemirror 2.22 Signed-off-by: Ananya Sen --- imports/codemirror/mode/verilog/index.html | 210 +++++++++++++++++++++++++++++ imports/codemirror/mode/verilog/verilog.js | 194 ++++++++++++++++++++++++++ 2 files changed, 404 insertions(+) create mode 100644 imports/codemirror/mode/verilog/index.html create mode 100644 imports/codemirror/mode/verilog/verilog.js (limited to 'imports/codemirror/mode/verilog') diff --git a/imports/codemirror/mode/verilog/index.html b/imports/codemirror/mode/verilog/index.html new file mode 100644 index 00000000..775dd537 --- /dev/null +++ b/imports/codemirror/mode/verilog/index.html @@ -0,0 +1,210 @@ + + + + CodeMirror: Verilog mode + + + + + + + +

CodeMirror: Verilog mode

+ +
+ + + +

Simple mode that tries to handle Verilog-like languages as well as it + can. Takes one configuration parameters: keywords, an + object whose property names are the keywords in the language.

+ +

MIME types defined: text/x-verilog (Verilog code).

+ + diff --git a/imports/codemirror/mode/verilog/verilog.js b/imports/codemirror/mode/verilog/verilog.js new file mode 100644 index 00000000..736d16ad --- /dev/null +++ b/imports/codemirror/mode/verilog/verilog.js @@ -0,0 +1,194 @@ +CodeMirror.defineMode("verilog", function(config, parserConfig) { + var indentUnit = config.indentUnit, + keywords = parserConfig.keywords || {}, + blockKeywords = parserConfig.blockKeywords || {}, + atoms = parserConfig.atoms || {}, + hooks = parserConfig.hooks || {}, + multiLineStrings = parserConfig.multiLineStrings; + var isOperatorChar = /[&|~>