From 914c841ce466677c9e4261fbbcc3c0df13f472eb Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Wed, 26 Sep 2018 15:49:38 +0300 Subject: Fix some parsing mistakes --- src/compiler/compiler.lm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/compiler/compiler.lm b/src/compiler/compiler.lm index 59b0ee3..a4968f9 100644 --- a/src/compiler/compiler.lm +++ b/src/compiler/compiler.lm @@ -20,7 +20,7 @@ context fspec context container context enum lex - ignore / space+ / + ignore / '//' [^\n]* '\n' | space+ / literal `= `, `{ `} end @@ -47,7 +47,7 @@ context fspec context strukt # <- struct is taken :( lex - ignore / space+ / + ignore / '//' [^\n]* '\n' | space+ / literal `{ `} end @@ -64,7 +64,7 @@ context fspec context select lex - ignore / space+ / + ignore / '//' [^\n]* '\n' | space+ / literal `( `) `{ `} `* end @@ -86,15 +86,15 @@ context fspec context declaration lex - ignore / space+ / + ignore / '//' [^\n]* '\n' | space+ / literal `; `| `[ `] + token VISUAL / 'nul' | 'dec' | 'hex' | 'str' / end literal `enum `struct - token VISUAL / 'nul' | 'dec' | 'hex' | 'str' / def visual - [WS+ name:VISUAL] + [name:VISUAL] def filter [`| function:reference::function::type] -- cgit v1.2.3-70-g09d2