Skip to content

Commit

Permalink
Fixed "module" highlighting problems
Browse files Browse the repository at this point in the history
This fixes the currently opened issues:
  • Loading branch information
atnbueno authored Feb 7, 2018
1 parent 0ce67f6 commit 4981c34
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions syntaxes/scad.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,9 @@
<string>OpenSCAD</string>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.control.scad</string>
</dict>
</dict>
<key>match</key>
<string>^(module)\s.*$</string>
<key>name</key>
<string>meta.function.scad</string>
</dict>
<dict>
<key>match</key>
<string>\b(if|else|for|intersection_for|assign|render|function|include|use)\b</string>
<string>\b(if|else|for|intersection_for|assign|render|function|include|use|module)\b</string>
<key>name</key>
<string>keyword.control.scad</string>
</dict>
Expand Down

1 comment on commit 4981c34

@atnbueno
Copy link
Owner Author

@atnbueno atnbueno commented on 4981c34 Feb 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second commit fixes the currently opened issues:

I'm not sure what the "captures" pattern was meant to (a regex with fixed output?!) but in the OpenSCAD embedded editor, "module" is shown exactly as "function".

Please sign in to comment.