]> git.saurik.com Git - bison.git/blobdiff - data/c.m4
Formatting changes.
[bison.git] / data / c.m4
index 66d4f6d23aafc936f2a1dc14143131680d39553f..430a5573290aa1ef7a91b00584f4be6c827d3ef2 100644 (file)
--- a/data/c.m4
+++ b/data/c.m4
 
 # b4_comment(TEXT)
 # ----------------
+# Put TEXT in comment.  Avoid trailing spaces: don't indent empty lines.
+# Avoid adding indentation to the first line, as the indentation comes
+# from "/*".  That's why we don't patsubst([$1], [^\(.\)], [   \1]).
 m4_define([b4_comment], [/* m4_bpatsubst([$1], [
-], [
-   ])  */])
+\(.\)], [
+   \1])  */])
 
 # b4_identification
 # -----------------
@@ -367,6 +370,7 @@ m4_define([b4_sync_start], [[#]line $1 $2])
 m4_define([b4_case],
 [  case $1:
 $2
+b4_syncline([@oline@], [@ofile@])
     break;])
 
 # b4_symbol_actions(FILENAME, LINENO,