]> ocean-lang.org Git - ocean/blobdiff - csrc/indent_test.mdc
parsergen: allow terminals to be declared.
[ocean] / csrc / indent_test.mdc
index 960f63eb8122a2b8791952498e5c7b42832d2029..087df32c4957ee5f7fa5bcb441162377ce77eb4b 100644 (file)
@@ -114,8 +114,6 @@ with complete bracketing and indenting.
                char *file = mmap(NULL, len, PROT_READ, MAP_SHARED, fd, 0);
                struct section *s = code_extract(file, file+len, NULL);
                struct token_config config = {
-                       .ignored = (1 << TK_line_comment)
-                                | (1 << TK_block_comment),
                        .number_chars = ".,_+-",
                        .word_start = "",
                        .word_cont = "",
@@ -134,6 +132,8 @@ with complete bracketing and indenting.
 
 ~~~~~~
 
+$TERM if { } : * + - / ; =
+
 Program -> Statementlist ${ print_statement($1, 0); }$
 
 $*statement