From 8c4fe7e59f55ec30e2bb6ff5a7f44a8216236abd Mon Sep 17 00:00:00 2001 From: Cameron Little Date: Sat, 9 May 2020 15:09:32 +0200 Subject: [PATCH] Add failing test case for single # in bash --- lexers/testdata/bash.actual | 5 ++++- lexers/testdata/bash.expected | 7 ++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lexers/testdata/bash.actual b/lexers/testdata/bash.actual index fe54c5f5d..a094d87f7 100644 --- a/lexers/testdata/bash.actual +++ b/lexers/testdata/bash.actual @@ -43,4 +43,7 @@ tiger_em () { get_em $directory "ftp://ftp2.census.gov/geo/tiger/TIGER2010/"$1 shift done -} \ No newline at end of file +} + +# bare comment marker +# diff --git a/lexers/testdata/bash.expected b/lexers/testdata/bash.expected index 75b068fa0..0137bc0af 100644 --- a/lexers/testdata/bash.expected +++ b/lexers/testdata/bash.expected @@ -130,5 +130,10 @@ {"type":"Text","value":"\n "}, {"type":"Keyword","value":"done"}, {"type":"Text","value":"\n"}, - {"type":"Operator","value":"}"} + {"type":"Operator","value":"}"}, + {"type":"Text","value":"\n\n"}, + {"type":"CommentSingle","value":"# bare comment marker"}, + {"type":"Text","value":"\n"}, + {"type":"CommentSingle","value":"#"}, + {"type":"Text","value":"\n"} ]