Ticket #1647: 0001-Lex-Flex-sources-extension-.l-handled-by-yxx.synta.patch

File 0001-Lex-Flex-sources-extension-.l-handled-by-yxx.synta.patch, 3.8 KB (added by SzG, 6 years ago)

yacc syntax completed, lex syntax also handled by yxx.syntax

  • misc/syntax/Syntax

    From 0dac1cec0fc06cbed97dacce07d713469fbff1c7 Mon Sep 17 00:00:00 2001
    From: =?utf-8?q?SZAB=C3=93=20Gergely?= <szg@subogero.com>
    Date: Mon, 9 Aug 2010 23:39:43 +0200
    Subject: [PATCH] Lex/Flex sources (extension .l) handled by yxx.syntax.
     Yacc/Bison syntax completed with all symbols.
    
    ---
     misc/syntax/Syntax     |    2 +-
     misc/syntax/yxx.syntax |   67 ++++++++++++++++++++++++++++++++++++++++++++++++
     2 files changed, 68 insertions(+), 1 deletions(-)
    
    diff --git a/misc/syntax/Syntax b/misc/syntax/Syntax
    index 0c79425..c5d7196 100644
    a b include PKGBUILD.syntax 
    235235file \\.install$ Arch\spackage\sinstall\sscript 
    236236include sh.syntax 
    237237 
    238 file ..\*\\.(y|yxx|ypp)$ Yacc/Bison\sParser 
     238file ..\*\\.(l|y|yxx|ypp)$ Lex/Flex/Yacc/Bison\ssource 
    239239include yxx.syntax 
    240240 
    241241file .\* unknown 
  • misc/syntax/yxx.syntax

    diff --git a/misc/syntax/yxx.syntax b/misc/syntax/yxx.syntax
    index 553390e..da81945 100644
    a b context default 
    6464    keyword whole ... yellow 
    6565    keyword whole linestart \{\s\t\}\[\s\t\]#*\n brightmagenta 
    6666 
     67    keyword whole accept yellow 
     68    keyword whole code yellow 
     69    keyword whole debug yellow 
     70    keyword whole defines yellow 
     71    keyword whole destructor yellow 
     72    keyword whole dprec yellow 
     73    keyword whole end yellow 
     74    keyword whole error yellow 
     75    keyword whole error-verbose yellow 
     76    keyword whole expect yellow 
     77    keyword whole file-prefix yellow 
     78    keyword whole glr-parser yellow 
     79    keyword whole initial-action yellow 
     80    keyword whole language yellow 
    6781    keyword whole left yellow 
     82    keyword whole lex-param yellow 
     83    keyword whole locations yellow 
     84    keyword whole merge yellow 
     85    keyword whole name-prefix yellow 
    6886    keyword whole node yellow 
     87    keyword whole nonassoc yellow 
     88    keyword whole no-parser yellow 
     89    keyword whole no-lines yellow 
     90    keyword whole output yellow 
     91    keyword whole parse-param yellow 
     92    keyword whole prec yellow 
     93    keyword whole pure-parser yellow 
     94    keyword whole require yellow 
     95    keyword whole right yellow 
     96    keyword whole skeleton yellow 
    6997    keyword whole start yellow 
    7098    keyword whole token yellow 
     99    keyword whole token-table yellow 
     100    keyword whole type yellow 
     101    keyword whole undefined yellow 
     102    keyword whole union yellow 
     103    keyword whole verbose yellow 
     104    keyword whole yacc yellow 
     105 
     106    keyword whole YYABORT brightred 
     107    keyword whole YYACCEPT brightred 
     108    keyword whole YYBACKUP brightred 
     109    keyword whole YYDEBUG brightred 
     110    keyword whole YYERROR brightred 
     111    keyword whole YYERROR_VERBOSE brightred 
     112    keyword whole YYINITDEPTH brightred 
     113    keyword whole YYLEX_PARAM brightred 
     114    keyword whole YYLTYPE brightred 
     115    keyword whole YYMAXDEPTH brightred 
     116    keyword whole YYPARSE_PARAM brightred 
     117    keyword whole YYRECOVERING brightred 
     118    keyword whole YYSTACK_USE_ALLOCA brightred 
     119    keyword whole YYSTYPE brightred 
     120 
     121    keyword whole yychar brightmagenta 
     122    keyword whole yyclearin brightmagenta 
     123    keyword whole yydebug brightmagenta 
     124    keyword whole yyerrok brightmagenta 
     125    keyword whole yyerror brightmagenta 
     126    keyword whole yylex brightmagenta 
     127    keyword whole yylloc brightmagenta 
     128    keyword whole yylval brightmagenta 
     129    keyword whole yynerrs brightmagenta 
     130    keyword whole yyparse brightmagenta 
     131    keyword whole yypstate_delete brightmagenta 
     132    keyword whole yypstate_new brightmagenta 
     133    keyword whole yypull_parse brightmagenta 
     134    keyword whole yypush_parse brightmagenta 
     135    keyword whole yywrap brightmagenta 
    71136 
    72137    keyword /\* brown 
    73138    keyword \*/ brown 
    context default 
    107172    keyword % yellow 
    108173    keyword $$ yellow 
    109174    keyword $\[0123456789\] yellow 
     175    keyword @$ yellow 
     176    keyword @\[0123456789\] yellow 
    110177 
    111178context exclusive /\* \*/ brown 
    112179    spellcheck