Skip to content

Commit

Permalink
Bash: simplify comment regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Jul 12, 2015
1 parent fe0a068 commit 2700981
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/prism-bash.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Prism.languages.bash = Prism.languages.extend('clike', {
'comment': {
pattern: /(^|[^"{\\])(#.*?(\r?\n|$))/,
pattern: /(^|[^"{\\])#.*/,
lookbehind: true
},
'string': {
Expand Down
2 changes: 1 addition & 1 deletion components/prism-bash.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2700981

Please sign in to comment.