履歴: ソフトウェア/pukiwiki/texthighlight.inc.php

各行は、その日時に書かれた内容です。追加・削除は、1 つ前の版との行数の差です (全 11 版)。「差分」は比較する版、「基準」は比べる相手の版を選びます

日時タイトル文字数追加削除内容差分基準
2020/1/11 11:15:52ソフトウェア/pukiwiki/texthighlight.inc.php 最新版10,013+1 -1表示差分—
2020/1/11 11:15:52ソフトウェア/pukiwiki/texthighlight.inc.php 10,019+6 -1表示差分選択
2014/5/14 5:09:19ソフトウェア/pukiwiki/texthighlight.inc.php 9,931+19 -0表示差分選択
2013/5/9 5:13:36ソフトウェア/pukiwiki/texthighlight.inc.php 9,486+2 -3表示差分選択
2013/5/9 5:13:36ソフトウェア/pukiwiki/texthighlight.inc.php 9,497+1 -1表示差分選択
2013/5/9 5:13:36ソフトウェア/pukiwiki/texthighlight.inc.php 9,488+42 -0表示差分選択
2010/5/11 10:39:48ソフトウェア/pukiwiki/texthighlight.inc.php 8,343+9 -9表示差分選択
2010/5/11 10:39:48ソフトウェア/pukiwiki/texthighlight.inc.php 8,352+30 -28表示差分選択
2010/5/11 10:39:48ソフトウェア/pukiwiki/texthighlight.inc.php 8,174+50 -0表示表示中選択
2009/2/9 11:47:30ソフトウェア/pukiwiki/texthighlight.inc.php 5,798+155 -44表示差分基準
2009/2/9 7:40:18ソフトウェア/pukiwiki/texthighlight.inc.php 3,271— —表示—選択

基準: ソフトウェア/pukiwiki/texthighlight.inc.php (2009/2/9 11:47:30) → 比較: ソフトウェア/pukiwiki/texthighlight.inc.php (2010/5/11 10:39:48)

@@ -48,6 +48,9 @@
|HTML | Pascal | XML |
|Java| Perl| Xorg configuration files|
+あるいは、文法ファイルを頑張って手で書けば、
+その他の言語にも割と簡単に対応させることができます。
+
役に立ちそうだったらご利用ください。
* ソースコード [#s3f0331d]
@@ -217,6 +220,53 @@
margin-left:0.5em;
}
+* Verilog 用の言語ファイル [#i7e26802]
+
+sh_verilog.js
+ LANG:javascript
+ if (! this.sh_languages) {
+ this.sh_languages = {};
+ }
+ sh_languages['verilog'] = [
+ [
+ [ /\/\/[ \t]*synthesis[ \t]+attribute[ \t]/gi, 'sh_preproc', 5 ],
+ [ /^[ \t]*`\w/gi, 'sh_preproc', 5 ],
+ [ /#(?:\d+|\d*'b[01xXzZ]+|\d*'h[0-9a-fA-FxXzZ]+|\d*'d[\dxXzZ]+)\b/gi, 'sh_preproc', -1 ],
+ [ /\/\//g, 'sh_comment', 1 ],
+ [ /\/\*/g, 'sh_comment', 2 ],
+ [ /\(\*/g, 'sh_preproc', 4 ],
+ [ /\b(?:\d+|\d*'b[01xXzZ]+|\d*'h[0-9a-fA-FxXzZ]+|\d*'d[\dxXzZ]+)\b/g, 'sh_number', -1],
+ [ /"/g, 'sh_string', 3 ],
+ [ /(?:\.|\$)\w+\s*(?=\()/g, 'sh_function', -1 ],
+ [ /\b(?:shortint|int|longint|byte|bit|logic|reg|integer|time|signed|unsigned|real|shortreal|void|candle|event|string)\b/g, 'sh_type', -1 ],
+ [ /\b(?:always|end|ifnone|or|rpmos|tranif1|and|endcase|initial|output|rtran|tri|assign|endmodule|inout|parameter|rtr|nif0|tri0|begin|endfunction|input|pmos|rtranif1|tri1|buf|endprimitive|integer|posedge|scalared|triand|bufif0|endspecify|join|primitive|small|trior|bufif1|endtable|large|pull0|specify|trireg|case|endtask|macromodule|pull1|specparam|vectored|casex|event|medium|pullup|strong0|wait|casez|for|module|pulldown|strong1|wand|cmos|force|nand|rcmos|supply0|weak0|deass|gn|forever|negedge|real|supply1|weak1|default|for|nmos|realtime|table|while|defparam|function|nor|reg|task|wire|disable|highz0|not|release|time|wor|edge|highz1|notif0|repeat|tran|xnor|else|if|notif1|rnmos|tranif0|xor)\b/g, 'sh_keyword', -1 ],
+ [ /\b(?:generate|endgenerate|genvar|typedef|class|enum|union|struct|localparam|export|import|context|fork)\b/g, 'sh_keyword', -1 ],
+ [ /~|!|%|\^|\*|\(|\)|-|\+|=|\[|\]|\\|:|;|,|\.|\/|\?|&|<|>|\|/g, 'sh_symbol', -1 ],
+ ],
+ [ // 1
+ [ /$/g, null, -2 ],
+ [ /(?:<?)[A-Za-z0-9_\.\/\-_~]+@[A-Za-z0-9_\.\/\-_~]+(?:>?)|(?:<?)[A-Za-z0-9_]+:\/\/[A-Za-z0-9_\.\/\-_~]+(?:>?)/g,
+ 'sh_url', -1 ],
+ ],
+ [ // 2
+ [ /\*\//g, null, -2 ],
+ [ /(?:<?)[A-Za-z0-9_\.\/\-_~]+@[A-Za-z0-9_\.\/\-_~]+(?:>?)|(?:<?)[A-Za-z0-9_]+:\/\/[A-Za-z0-9_\.\/\-_~]+(?:>?)/g,
+ 'sh_url', -1 ],
+ ],
+ [ // 3
+ [ /\\"|\\\\/g, null, -1 ],
+ [ /"/g, 'sh_string', -2 ]
+ ],
+ [ // 4
+ [ /\*\)/g, 'sh_preproc', -2 ],
+ ],
+ [ // 5
+ [ /$/g, 'sh_preproc', -2 ],
+ ],
+ ];
+
+手書きで適当に書いたので不具合もありそうなのですが。
+
* コメント [#x8544523]
#article_kcaptcha