Skip to content

Commit

Permalink
Replace all \s with [ \t] to prevent matching newlines
Browse files Browse the repository at this point in the history
Fixes #7
  • Loading branch information
danmou committed Oct 20, 2018
1 parent 41569a3 commit f6958d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lark.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</dict>
<dict>
<key>begin</key>
<string>\s*(\?|!)?(\b(?:\w|\s|[\-_0-9])+\b)((\.)(\d+))?\s*(:)</string>
<string>[ \t]*(\?|!)?(\b(?:\w|[ \t]|[\-_0-9])+\b)((\.)(\d+))?[ \t]*(:)</string>
<key>captures</key>
<dict>
<key>1</key>
Expand Down Expand Up @@ -65,7 +65,7 @@
</dict>
<dict>
<key>begin</key>
<string>\s*(\|)</string>
<string>[ \t]*(\|)</string>
<key>captures</key>
<dict>
<key>1</key>
Expand Down Expand Up @@ -165,7 +165,7 @@
<key>invalid</key>
<dict>
<key>match</key>
<string>\(\s*[*:/]\s*\)</string>
<string>\([ \t]*[*:/][ \t]*\)</string>
<key>name</key>
<string>invalid.illegal.lark</string>
</dict>
Expand Down Expand Up @@ -318,7 +318,7 @@
<key>repetition-numbered</key>
<dict>
<key>match</key>
<string>(~)\s*(\d+)\s*((\.\.)\s*(\d+))?</string>
<string>(~)[ \t]*(\d+)[ \t]*((\.\.)[ \t]*(\d+))?</string>
<key>captures</key>
<dict>
<key>1</key>
Expand Down

0 comments on commit f6958d7

Please sign in to comment.