Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
Merge pull request #223 from jsdavis/master
Browse files Browse the repository at this point in the history
Updated syntax definition to work with pipe separators as well as spaces
  • Loading branch information
andriyko committed Aug 24, 2018
2 parents 7f635a6 + 34b5607 commit 8e5a349
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Robot.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</dict>
<dict>
<key>begin</key>
<string>((?&lt;!\\)([$&amp;]{)|(?&lt;=\\\\)([$&amp;]{))</string>
<string>((?&lt;!\\)|(?&lt;=\\\\))[$&amp;]{</string>
<key>comment</key>
<string>Robot Framework scalar and dictionary variables</string>
<key>end</key>
Expand All @@ -50,13 +50,13 @@
<key>comment</key>
<string>Robot Framework data tables</string>
<key>match</key>
<string>(?i)^(\*{1,3} ?)(settings?|variables?|keywords?|test cases?)( ?\*{1,3})?</string>
<string>(?i)^(\|\s*)?(\*{1,3} ?)(settings?|variables?|keywords?|test cases?)( ?\*{1,3})?(\s*\|)?</string>
<key>name</key>
<string>string.robot.header</string>
</dict>
<dict>
<key>begin</key>
<string>(?i)^\s*\[?Documentation\]?\s+</string>
<string>(?i)(^\|\s*)?\[?Documentation\]?\s+</string>
<key>comment</key>
<string>Test case, keyword and settings table documentation</string>
<key>end</key>
Expand Down Expand Up @@ -86,17 +86,17 @@
<key>comment</key>
<string>Settings table settings, like Library</string>
<key>match</key>
<string>(?i)^(Library|Resource|Test Timeout|Test Template|Test Teardown|Test Setup|Default Tags|Force Tags|Metadata|Variables|Suite Setup|Suite Teardown)(?:( )|( \| ))</string>
<string>(?i)^(\|\s*)?(Library|Resource|Test Timeout|Test Template|Test Teardown|Test Setup|Default Tags|Force Tags|Metadata|Variables|Suite Setup|Suite Teardown)(?:( )|( \| ))</string>
<key>name</key>
<string>constant.language</string>
</dict>
<dict>
<key>begin</key>
<string>^[^\.{3}]\S+</string>
<string>^(\|\s+)?(?!^\.{3})(?![\|$&amp;])\S+</string>
<key>comment</key>
<string>Keywords and test cases</string>
<key>end</key>
<string>$</string>
<string>($|\||\s{2,})</string>
<key>name</key>
<string>keyword.control.robot</string>
</dict>
Expand Down

0 comments on commit 8e5a349

Please sign in to comment.