Skip to content

Instantly share code, notes, and snippets.

@Sinthorion
Created October 29, 2018 18:17
Show Gist options
  • Save Sinthorion/8acff04a228332b4c74ab14c1f679590 to your computer and use it in GitHub Desktop.
Save Sinthorion/8acff04a228332b4c74ab14c1f679590 to your computer and use it in GitHub Desktop.
Notepad++ Custom Language for WebAssembly Text format
<NotepadPlus>
<UserLang name="WAT" ext="wat" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="yes" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00;; 01 02 03(; 04;)</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
<Keywords name="Numbers, extras1"></Keywords>
<Keywords name="Numbers, extras2"></Keywords>
<Keywords name="Numbers, suffix1"></Keywords>
<Keywords name="Numbers, suffix2"></Keywords>
<Keywords name="Numbers, range"></Keywords>
<Keywords name="Operators1"></Keywords>
<Keywords name="Operators2"></Keywords>
<Keywords name="Folders in code1, open">(</Keywords>
<Keywords name="Folders in code1, middle"></Keywords>
<Keywords name="Folders in code1, close">)</Keywords>
<Keywords name="Folders in code2, open"></Keywords>
<Keywords name="Folders in code2, middle"></Keywords>
<Keywords name="Folders in code2, close"></Keywords>
<Keywords name="Folders in comment, open"></Keywords>
<Keywords name="Folders in comment, middle"></Keywords>
<Keywords name="Folders in comment, close"></Keywords>
<Keywords name="Keywords1">get_local set_local tee_local get_global set_global drop select nop grow_memory current_memory i32.const i64.const f32.const f64.const i32.add i32.sub i32.mul i32.div_s i32.div_u i32.rem_s i32.rem_u i32.and i32.or i32.xor i32.shl i32.shr_u i32.shr_s i32.rotl i32.rotr i32.eq i32.ne i32.lt_s i32.le_s i32.lt_u i32.le_u i32.gt_s i32.ge_s i32.gt_u i32.ge_u i32.clz i32.ctz i32.popcnt i32.eqz i64.add i64.sub i64.mul i64.div_s i64.div_u i64.rem_s i64.rem_u i64.and i64.or i64.xor i64.shl i64.shr_u i64.shr_s i64.rotl i64.rotr i64.eq i64.ne i64.lt_s i64.le_s i64.lt_u i64.le_u i64.gt_s i64.ge_s i64.gt_u i64.ge_u i64.clz i64.ctz i64.popcnt i64.eqz f32.add f32.sub f32.mul f32.div f32.abs f32.neg f32.copysign f32.ceil f32.floor f32.trunc f32.nearest f32.eq f32.ne f32.lt f32.le f32.gt f32.ge f32.sqrt f32.min f32.max f64.add f64.sub f64.mul f64.div f64.abs f64.neg f64.copysign f64.ceil f64.floor f64.trunc f64.nearest f64.eq f64.ne f64.lt f64.le f64.gt f64.ge f64.sqrt f64.min f64.max i32.wrap/i64 i32.trunc_s/f32 i32.trunc_s/f64 i32.trunc_u/f32 i32.trunc_u/f64 i32.reinterpret/f32 i64.extend_s/i32 i64.extend_u/i32 i64.trunc_s/f32 i64.trunc_s/f64 i64.trunc_u/f32 i64.trunc_u/f64 i64.reinterpret/f64 f32.demote/f64 f32.convert_s/i32 f32.convert_s/i64 f32.convert_u/i32 f32.convert_u/i64 f32.reinterpret/i32 f64.promote/f32 f64.convert_s/i32 f64.convert_s/i64 f64.convert_u/i32 f64.convert_u/i64 f64.reinterpret/i64 i32.load8_s i32.load8_u i32.load16_s i32.load16_u i32.load i64.load8_s i64.load8_u i64.load16_s i64.load16_u i64.load32_s i64.load32_u i64.load f32.load f64.load i32.store8 i32.store16 i32.store i64.store8 i64.store16 i64.store32 i64.store f32.store f64.store </Keywords>
<Keywords name="Keywords2">export import memory data type call call_indirect module func global start table</Keywords>
<Keywords name="Keywords3">block loop if else br br_if br_table return end unreachable</Keywords>
<Keywords name="Keywords4">mut param result i32 i64 f32 f64 anyfunc</Keywords>
<Keywords name="Keywords5">$</Keywords>
<Keywords name="Keywords6"></Keywords>
<Keywords name="Keywords7"></Keywords>
<Keywords name="Keywords8"></Keywords>
<Keywords name="Delimiters">00&quot; 01\ 02&quot; 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
</KeywordLists>
<Styles>
<WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="COMMENTS" fgColor="808080" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="LINE COMMENTS" fgColor="808080" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="NUMBERS" fgColor="FF8000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS1" fgColor="0000FF" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS2" fgColor="FF0000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS3" fgColor="008040" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS4" fgColor="8000FF" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS5" fgColor="808000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="OPERATORS" fgColor="00FF00" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN CODE1" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS1" fgColor="800000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS2" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
<WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontStyle="0" nesting="0" />
</Styles>
</UserLang>
</NotepadPlus>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment