1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-21 18:22:53 +01:00

Add TableGen syntax highlighting for the jEdit editor.

llvm-svn: 67005
This commit is contained in:
Sebastian Redl 2009-03-14 10:15:32 +00:00
parent c938e0ab02
commit da664dfdd7
2 changed files with 53 additions and 0 deletions

14
utils/jedit/README Normal file
View 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
View 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=",+-=&lt;&gt;/?^&amp;*" />
<PROPERTY NAME="unalignedOpenBrackets" VALUE="(&lt;" />
<PROPERTY NAME="unalignedCloseBrackets" VALUE=")&gt;" />
</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>