Gitweb: http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=6e455ab187d... Commit: 6e455ab187d62be0faf7f714a340fe9121f1ef28 Parent: 6ee32886070b682b8ccb02ddeeba86b28e6b83be Author: Andrew Price anprice@redhat.com AuthorDate: Sat May 18 00:22:06 2013 +0100 Committer: Andrew Price anprice@redhat.com CommitterDate: Sat May 18 00:22:06 2013 +0100
gfs2l: Add hash comments
gfs2l now recognises # as a line comment. This was added in order to enable writing executable scripts with "#!gfs2l -f" at the top of the file.
Signed-off-by: Andrew Price anprice@redhat.com --- gfs2/libgfs2/lexer.l | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/gfs2/libgfs2/lexer.l b/gfs2/libgfs2/lexer.l index 36e1c2d..7fe1aba 100644 --- a/gfs2/libgfs2/lexer.l +++ b/gfs2/libgfs2/lexer.l @@ -32,7 +32,9 @@ number ({decnumber}|{hexnumber}) offset +{number} id {letter}({letter}|{decdigit}|.)* string '([^']|\')*' -comment //.*\n +ccomment //.*\n +shcomment #.*\n +comment ({ccomment}|{shcomment}) whitespace [ \t\r]+
%%
cluster-commits@lists.fedorahosted.org