Skip to content

Commit

Permalink
(bug) fix actual intention of Stan rule
Browse files Browse the repository at this point in the history
It's obvious `\s+` is what was intended, not that the first
character should be optional.
  • Loading branch information
joshgoebel committed Feb 29, 2020
1 parent 8c0f9e3 commit 7f314a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/languages/stan.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export default function(hljs) {
{
// hack: in range constraints, upper must follow either , or <
// <lower = ..., upper = ...> or <upper = ...>
begin: /[<,]*upper\s*=/,
begin: /[<,]\s*upper\s*=/,
keywords: 'upper'
},
{
Expand Down

0 comments on commit 7f314a6

Please sign in to comment.