%%
+#.* { return (COMMENT); }
+
["][^"]*["] {
yylval.node.string = strdup(yytext + 1);
yylval.node.string[strlen(yylval.node.string) - 1] = 0;
#include <stdio.h>
%}
-%token IDENTIFIER STRING NUMBER SPACE
+%token IDENTIFIER STRING NUMBER SPACE COMMENT
%start command
%union {
$<node>$.nodes = $<node>3.nodes;
$<node>$.type = $<node>1.type;
}
+ | COMMENT {
+ $<node>$.string = NULL;
+ $<node>$.ident = NULL;
+ $<node>$.nodes = NULL;
+ $<node>$.type = 'C';
+ }
;
%%
pkgdesc='Database System'
arch=('i686' 'x86_64')
license=('BSD')
-pkgrel='30'
+pkgrel='31'
makedepends=('byacc')
-source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision=193')
+source=('dataworks::svn+http://sw.nishi.boats/svn/nishi-dataworks/trunk#revision=194')
sha256sums=('SKIP')
build() {
syn match dataworksString /\v"[^"]+"/ display
syn match dataworksString /\v'[^']+'/ display
syn match dataworksNumber /\v[+-]?[0-9]+(\.[0-9]+)?/ display
-syn match dataworksComment /\v#.+$/ display
+syn match dataworksComment /\v#.*$/ display
syn region dataworksArgument start='(' end=')' fold transparent
syn match dataworksIdent /\v\c(create_table|use|insert|version)/ display