Add XScript syntax highlighting definition
This commit is contained in:
parent
db78d63e13
commit
4896affc48
1
.gitignore
vendored
1
.gitignore
vendored
@ -23,3 +23,4 @@ libs/*/release/*
|
||||
libs/*/debug/*
|
||||
.git.stash
|
||||
*Makefile*
|
||||
.claude/
|
||||
|
||||
75
XScript.xml
Normal file
75
XScript.xml
Normal file
@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" encoding="Windows-1252" ?>
|
||||
<NotepadPlus>
|
||||
<UserLang name="XPlor DSL" ext="dsl" udlVersion="2.1">
|
||||
<Settings>
|
||||
<Global caseIgnored="no" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
|
||||
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
|
||||
</Settings>
|
||||
|
||||
<KeywordLists>
|
||||
<!-- Comments definition (UDL2):
|
||||
00 = line comment start
|
||||
03 = block comment start
|
||||
04 = block comment end
|
||||
This format is what Notepad++ expects for udlVersion="2.1". -->
|
||||
<Keywords name="Comments">00// 01 02 03/* 04*/</Keywords>
|
||||
|
||||
<Keywords name="Numbers, prefix1"></Keywords>
|
||||
<Keywords name="Numbers, prefix2"></Keywords>
|
||||
|
||||
<!-- Primary language keywords -->
|
||||
<Keywords name="Keywords1">
|
||||
type byteorder criteria require skip if else while align seek repeat for in EOF LE BE
|
||||
</Keywords>
|
||||
|
||||
<!-- Types / builtins / common stage names -->
|
||||
<Keywords name="Keywords2">
|
||||
u8 u16 u32 u64 i8 i16 i32 i64
|
||||
read pos size zlib parse parse_here
|
||||
u8at u16at u32at u64at bytesat
|
||||
</Keywords>
|
||||
|
||||
<!-- Optional: common identifiers you want highlighted (keep or delete) -->
|
||||
<Keywords name="Keywords3">
|
||||
company file_type marker platform_u32
|
||||
</Keywords>
|
||||
|
||||
<Keywords name="Keywords4"></Keywords>
|
||||
<Keywords name="Keywords5"></Keywords>
|
||||
<Keywords name="Keywords6"></Keywords>
|
||||
<Keywords name="Keywords7"></Keywords>
|
||||
<Keywords name="Keywords8"></Keywords>
|
||||
|
||||
<!-- Operators (optional; Notepad++ UDL can colorize these) -->
|
||||
<Keywords name="Operators1">= == != < <= > >= && || + - * / % << >> & ^ |</Keywords>
|
||||
<Keywords name="Operators2">..</Keywords>
|
||||
|
||||
<!-- Delimiters for strings -->
|
||||
<Keywords name="Delimiters">00" 01 02\" 03' 04 05\'</Keywords>
|
||||
</KeywordLists>
|
||||
|
||||
<Styles>
|
||||
<!-- Light mode base -->
|
||||
<WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
|
||||
<WordsStyle name="FOLDEROPEN" fgColor="000000" bgColor="FFFFFF" fontStyle="1" />
|
||||
<WordsStyle name="FOLDERCLOSE" fgColor="000000" bgColor="FFFFFF" fontStyle="1" />
|
||||
<WordsStyle name="FOLDER" fgColor="000000" bgColor="FFFFFF" fontStyle="1" />
|
||||
<WordsStyle name="COMMENT" fgColor="008000" bgColor="FFFFFF" fontStyle="0" />
|
||||
<WordsStyle name="COMMENT LINE" fgColor="008000" bgColor="FFFFFF" fontStyle="0" />
|
||||
<WordsStyle name="COMMENT DOC" fgColor="008000" bgColor="FFFFFF" fontStyle="0" />
|
||||
<WordsStyle name="NUMBER" fgColor="800080" bgColor="FFFFFF" fontStyle="0" />
|
||||
<WordsStyle name="KEYWORD1" fgColor="0000C0" bgColor="FFFFFF" fontStyle="1" />
|
||||
<WordsStyle name="KEYWORD2" fgColor="0060A0" bgColor="FFFFFF" fontStyle="1" />
|
||||
<WordsStyle name="KEYWORD3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
|
||||
<WordsStyle name="KEYWORD4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
|
||||
<WordsStyle name="KEYWORD5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
|
||||
<WordsStyle name="KEYWORD6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
|
||||
<WordsStyle name="KEYWORD7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
|
||||
<WordsStyle name="KEYWORD8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" />
|
||||
<WordsStyle name="OPERATOR" fgColor="A00000" bgColor="FFFFFF" fontStyle="0" />
|
||||
<WordsStyle name="DELIMITER1" fgColor="A0522D" bgColor="FFFFFF" fontStyle="0" />
|
||||
<WordsStyle name="DELIMITER2" fgColor="A0522D" bgColor="FFFFFF" fontStyle="0" />
|
||||
<WordsStyle name="DELIMITER3" fgColor="A0522D" bgColor="FFFFFF" fontStyle="0" />
|
||||
</Styles>
|
||||
</UserLang>
|
||||
</NotepadPlus>
|
||||
Loading…
x
Reference in New Issue
Block a user