mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
Add TableGen syntax highlighting for the jEdit editor.
llvm-svn: 67005
This commit is contained in:
parent
c938e0ab02
commit
da664dfdd7
14
utils/jedit/README
Normal file
14
utils/jedit/README
Normal file
@ -0,0 +1,14 @@
|
||||
-*- llvm/utils/jedit/README -*-
|
||||
|
||||
These are syntax highlighting files for the jEdit editor. Included are:
|
||||
|
||||
* tablegen.xml
|
||||
|
||||
Syntax highlighting mode for TableGen description files. To use, copy this
|
||||
file to ~/.jedit/modes/ and add this code to your ~/.jedit/modes/catalog:
|
||||
|
||||
<MODE NAME="tablegen" FILE="tablegen.xml" FILE_NAME_GLOB="*.td" />
|
||||
|
||||
Note: If you notice missing or incorrect syntax highlighting, please contact
|
||||
<llvmbugs [at] cs.uiuc.edu>; if you wish to provide a patch to improve the
|
||||
functionality, it will be most appreciated. Thank you.
|
39
utils/jedit/tablegen.xml
Normal file
39
utils/jedit/tablegen.xml
Normal file
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE MODE SYSTEM "xmode.dtd">
|
||||
<MODE>
|
||||
<PROPS>
|
||||
<PROPERTY NAME="lineComment" VALUE="//" />
|
||||
<PROPERTY NAME="commentStart" VALUE="/*" />
|
||||
<PROPERTY NAME="commentEnd" VALUE="*/" />
|
||||
<PROPERTY NAME="indentOpenBrackets" VALUE="{" />
|
||||
<PROPERTY NAME="indentCloseBrackets" VALUE="}" />
|
||||
<PROPERTY NAME="wordBreakChars" VALUE=",+-=<>/?^&*" />
|
||||
<PROPERTY NAME="unalignedOpenBrackets" VALUE="(<" />
|
||||
<PROPERTY NAME="unalignedCloseBrackets" VALUE=")>" />
|
||||
</PROPS>
|
||||
<RULES IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
|
||||
<EOL_SPAN TYPE="COMMENT1">//</EOL_SPAN>
|
||||
<SPAN TYPE="COMMENT1">
|
||||
<BEGIN>/*</BEGIN>
|
||||
<END>*/</END>
|
||||
</SPAN>
|
||||
<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE" ESCAPE="\">
|
||||
<BEGIN>"</BEGIN>
|
||||
<END>"</END>
|
||||
</SPAN>
|
||||
<KEYWORDS>
|
||||
<KEYWORD1>let</KEYWORD1>
|
||||
<KEYWORD1>def</KEYWORD1>
|
||||
<KEYWORD1>class</KEYWORD1>
|
||||
<KEYWORD1>include</KEYWORD1>
|
||||
|
||||
<KEYWORD3>bit</KEYWORD3>
|
||||
<KEYWORD3>int</KEYWORD3>
|
||||
<KEYWORD3>string</KEYWORD3>
|
||||
<KEYWORD3>bits</KEYWORD3>
|
||||
<KEYWORD3>list</KEYWORD3>
|
||||
<KEYWORD3>dag</KEYWORD3>
|
||||
<KEYWORD3>code</KEYWORD3>
|
||||
</KEYWORDS>
|
||||
</RULES>
|
||||
</MODE>
|
Loading…
Reference in New Issue
Block a user