Skip to content

Commit

Permalink
Add failing test case for single # in bash
Browse files Browse the repository at this point in the history
  • Loading branch information
apexskier authored and alecthomas committed May 11, 2020
1 parent 809ff9b commit 8c4fe7e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lexers/testdata/bash.actual
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,7 @@ tiger_em () {
get_em $directory "ftp://ftp2.census.gov/geo/tiger/TIGER2010/"$1
shift
done
}
}

# bare comment marker
#
7 changes: 6 additions & 1 deletion lexers/testdata/bash.expected
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
]

0 comments on commit 8c4fe7e

Please sign in to comment.