Skip to content

Commit

Permalink
Erlang: Regexp optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Oct 22, 2017
1 parent 75d00d7 commit 7547f83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions components/prism-erlang.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Prism.languages.erlang = {
'comment': /%.+/,
'string': {
pattern: /"(?:\\?.)*?"/,
pattern: /"(?:\\.|[^\\"\r\n])*"/,
greedy: true
},
'quoted-function': {
pattern: /'(?:\\.|[^'\\])+'(?=\()/,
pattern: /'(?:\\.|[^\\'\r\n])+'(?=\()/,
alias: 'function'
},
'quoted-atom': {
pattern: /'(?:\\.|[^'\\])+'/,
pattern: /'(?:\\.|[^\\'\r\n])+'/,
alias: 'atom'
},
'boolean': /\b(?:true|false)\b/,
Expand Down
2 changes: 1 addition & 1 deletion components/prism-erlang.min.js

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

0 comments on commit 7547f83

Please sign in to comment.