Skip to content

Commit 97608b6

Browse files
committed
Match argument names on the second line of definition
An error in the previous regular expression was preventing the first argument of successive lines of a definition from being matched unless they were at the very beginning of the line. Fixed by strictly matching the beginning of the argument. Fixes #87 as first mentioned in github-linguist/linguist#2692.
1 parent e053c50 commit 97608b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Syntaxes/Ruby.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@
418418
<array>
419419
<dict>
420420
<key>begin</key>
421-
<string>(?![\s,)])</string>
421+
<string>(?=[&amp;*_a-zA-Z])</string>
422422
<key>end</key>
423423
<string>(?=[,)])</string>
424424
<key>patterns</key>

0 commit comments

Comments
 (0)