Skip to content

Commit

Permalink
Update WebAssembly keywords to wabt 1.0.19.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Jul 24, 2020
1 parent 6b3b552 commit 2efaae3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Latest development builds (artifacts in Release configuration for each compiler
* VHDL
* Verilog HDL
* [Vim Script](../master/tools/lang/Vim.vim)
* WebAssembly
* [WebAssembly](https://github.com/WebAssembly/wabt/blob/master/src/lexer-keywords.txt), up to wabt 1.0.19
* XML Document, [Screenshots](https://github.com/zufuliu/notepad2/wiki/Screenshots#xml)
* XML Schema
* XML Stylesheet
Expand Down
17 changes: 9 additions & 8 deletions src/EditLexers/stlWASM.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

static KEYWORDLIST Keywords_WASM = {{
//++Autogenerated -- start of section automatically generated
"assert_exhaustion assert_invalid assert_malformed assert_return assert_trap assert_unlinkable binary data declare "
"elem event export func get global import invoke item local memory module mut nan:arithmetic nan:canonical offset param "
"quote ref.host register result shared start table then type "
"array assert_exhaustion assert_invalid assert_malformed assert_return assert_trap assert_unlinkable binary "
"data declare do elem event exn export extern field func get global import input invoke item local memory module mut "
"nan:arithmetic nan:canonical offset output param quote ref.extern register result shared start struct table then type "

, // 1 type
"anyfunc anyref f32 f32x4 f64 f64x2 funcref i16x8 i32 i32x4 i64 i64x2 i8x16 nullref v128 v16x8 v32x4 v64x2 v8x16 "
"anyfunc exnref externref f32 f32x4 f64 f64x2 funcref i16x8 i32 i32x4 i64 i64x2 i8x16 v128 v16x8 v32x4 v64x2 v8x16 "

, // 2 instruction
"atomic.notify block br br_if br_on_exn br_table call call_indirect catch current_memory data.drop drop "
"atomic.fence atomic.notify block br br_if br_on_exn br_table call call_indirect catch current_memory data.drop drop "
"elem.drop else end get_global get_local global.get global.set grow_memory if local.get local.set local.tee loop "
"memory.copy memory.fill memory.grow memory.init memory.size nop "
"ref.func ref.is_null ref.null rethrow return return_call return_call_indirect select set_global set_local "
Expand All @@ -31,7 +31,7 @@ static KEYWORDLIST Keywords_WASM = {{
"f64.reinterpret_i64 f64.sqrt f64.store f64.sub f64.trunc f64x2.abs f64x2.add f64x2.div f64x2.eq f64x2.extract_lane "
"f64x2.ge f64x2.gt f64x2.le f64x2.lt f64x2.max f64x2.min f64x2.mul f64x2.ne f64x2.neg f64x2.replace_lane "
"f64x2.splat f64x2.sqrt f64x2.sub "
"i16x8.add i16x8.add_saturate_s i16x8.add_saturate_u i16x8.all_true i16x8.any_true i16x8.avgr_u "
"i16x8.abs i16x8.add i16x8.add_saturate_s i16x8.add_saturate_u i16x8.all_true i16x8.any_true i16x8.avgr_u "
"i16x8.eq i16x8.extract_lane_s i16x8.extract_lane_u i16x8.ge_s i16x8.ge_u i16x8.gt_s i16x8.gt_u "
"i16x8.le_s i16x8.le_u i16x8.load8x8_s i16x8.load8x8_u i16x8.lt_s i16x8.lt_u "
"i16x8.max_s i16x8.max_u i16x8.min_s i16x8.min_u i16x8.mul i16x8.narrow_i32x4_s i16x8.narrow_i32x4_u i16x8.ne i16x8.neg "
Expand All @@ -49,7 +49,8 @@ static KEYWORDLIST Keywords_WASM = {{
"i32.shl i32.shr_s i32.shr_u i32.store i32.store16 i32.store8 i32.sub "
"i32.trunc_f32_s i32.trunc_f32_u i32.trunc_f64_s i32.trunc_f64_u "
"i32.trunc_sat_f32_s i32.trunc_sat_f32_u i32.trunc_sat_f64_s i32.trunc_sat_f64_u i32.wrap_i64 i32.xor "
"i32x4.add i32x4.all_true i32x4.any_true i32x4.eq i32x4.extract_lane i32x4.ge_s i32x4.ge_u i32x4.gt_s i32x4.gt_u "
"i32x4.abs i32x4.add i32x4.all_true i32x4.any_true i32x4.eq i32x4.extract_lane "
"i32x4.ge_s i32x4.ge_u i32x4.gt_s i32x4.gt_u "
"i32x4.le_s i32x4.le_u i32x4.load16x4_s i32x4.load16x4_u i32x4.lt_s i32x4.lt_u "
"i32x4.max_s i32x4.max_u i32x4.min_s i32x4.min_u i32x4.mul i32x4.ne i32x4.neg i32x4.replace_lane "
"i32x4.shl i32x4.shr_s i32x4.shr_u i32x4.splat i32x4.sub i32x4.trunc_sat_f32x4_s i32x4.trunc_sat_f32x4_u "
Expand All @@ -71,7 +72,7 @@ static KEYWORDLIST Keywords_WASM = {{
"i64.trunc_sat_f32_s i64.trunc_sat_f32_u i64.trunc_sat_f64_s i64.trunc_sat_f64_u i64.xor i64x2.add i64x2.extract_lane "
"i64x2.load32x2_s i64x2.load32x2_u i64x2.mul i64x2.neg i64x2.replace_lane "
"i64x2.shl i64x2.shr_s i64x2.shr_u i64x2.splat i64x2.sub "
"i8x16.add i8x16.add_saturate_s i8x16.add_saturate_u i8x16.all_true i8x16.any_true i8x16.avgr_u "
"i8x16.abs i8x16.add i8x16.add_saturate_s i8x16.add_saturate_u i8x16.all_true i8x16.any_true i8x16.avgr_u "
"i8x16.eq i8x16.extract_lane_s i8x16.extract_lane_u i8x16.ge_s i8x16.ge_u i8x16.gt_s i8x16.gt_u "
"i8x16.le_s i8x16.le_u i8x16.lt_s i8x16.lt_u i8x16.max_s i8x16.max_u i8x16.min_s i8x16.min_u "
"i8x16.narrow_i16x8_s i8x16.narrow_i16x8_u i8x16.ne i8x16.neg i8x16.replace_lane "
Expand Down

0 comments on commit 2efaae3

Please sign in to comment.