]> git.pld-linux.org Git - packages/flex.git/blob - flex-m4-quotes.diff
- from flex BTS - patch 829996 for bug 720983
[packages/flex.git] / flex-m4-quotes.diff
1 --- flex-2.5.31/flex.skl        2003-04-01 04:51:38.000000000 +0300
2 +++ flex/flex.skl       2003-10-24 21:47:10.000000000 +0300
3 @@ -27,6 +27,11 @@
4  %# Macros for runtime processing stage.
5  m4_changecom
6  m4_changequote
7 +
8 +%# Let user use our quoting strings
9 +m4_changequote({, })
10 +m4_define( {m4_userquote_start}, {m4_changequote(<, >)[[m4_changequote([[, ]])})
11 +m4_define( {m4_userquote_end}, {m4_changequote(<, >)]]m4_changequote([[, ]])})
12  m4_changequote([[, ]])
13  
14  %# 
15 --- flex-2.5.31/scan.l  2003-04-01 04:51:38.000000000 +0300
16 +++ flex/scan.l 2003-10-24 21:51:20.000000000 +0300
17 @@ -194,8 +194,14 @@
18  <COMMENT>{
19         "*/"            ACTION_ECHO; yy_pop_state();
20         "*"             ACTION_ECHO;
21 -       [^*\n]+         ACTION_ECHO;
22 -       [^*\n]*{NL}     ++linenum; ACTION_ECHO;
23 +       [\[\]]          ACTION_ECHO;
24 +       [^*\[\]\n]+     ACTION_ECHO;
25 +       [^*\[\]\n]*{NL} ++linenum; ACTION_ECHO;
26 +       \[\[            add_action("[" "[]" "]m4_" "userquote_start()");
27 +       \]\]            add_action("[" "[]" "]m4_" "userquote_end()");
28 +                       /* Macros need to be clearly separated from surrounding
29 +                        * text and this file needs to go through flex untouched.
30 +                        */
31  }
32  
33  <LINEDIR>{
This page took 0.059398 seconds and 4 git commands to generate.