]> git.pld-linux.org Git - packages/flex.git/commitdiff
- from flex BTS - patch 829996 for bug 720983
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 7 Dec 2003 14:29:06 +0000 (14:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    flex-m4-quotes.diff -> 1.1

flex-m4-quotes.diff [new file with mode: 0644]

diff --git a/flex-m4-quotes.diff b/flex-m4-quotes.diff
new file mode 100644 (file)
index 0000000..7463a40
--- /dev/null
@@ -0,0 +1,33 @@
+--- flex-2.5.31/flex.skl       2003-04-01 04:51:38.000000000 +0300
++++ flex/flex.skl      2003-10-24 21:47:10.000000000 +0300
+@@ -27,6 +27,11 @@
+ %# Macros for runtime processing stage.
+ m4_changecom
+ m4_changequote
++
++%# Let user use our quoting strings
++m4_changequote({, })
++m4_define( {m4_userquote_start}, {m4_changequote(<, >)[[m4_changequote([[, ]])})
++m4_define( {m4_userquote_end}, {m4_changequote(<, >)]]m4_changequote([[, ]])})
+ m4_changequote([[, ]])
+ %# 
+--- flex-2.5.31/scan.l 2003-04-01 04:51:38.000000000 +0300
++++ flex/scan.l        2003-10-24 21:51:20.000000000 +0300
+@@ -194,8 +194,14 @@
+ <COMMENT>{
+       "*/"            ACTION_ECHO; yy_pop_state();
+       "*"             ACTION_ECHO;
+-      [^*\n]+         ACTION_ECHO;
+-      [^*\n]*{NL}     ++linenum; ACTION_ECHO;
++      [\[\]]          ACTION_ECHO;
++      [^*\[\]\n]+     ACTION_ECHO;
++      [^*\[\]\n]*{NL} ++linenum; ACTION_ECHO;
++      \[\[            add_action("[" "[]" "]m4_" "userquote_start()");
++      \]\]            add_action("[" "[]" "]m4_" "userquote_end()");
++                      /* Macros need to be clearly separated from surrounding
++                       * text and this file needs to go through flex untouched.
++                       */
+ }
+ <LINEDIR>{
This page took 0.039158 seconds and 4 git commands to generate.