Hi all,
I would like to create a new syntax highlight based on Perl language.
At the bgining I would like to add support multiline comments with /* … */
How to do that?
Hi all,
I would like to create a new syntax highlight based on Perl language.
At the bgining I would like to add support multiline comments with /* … */
How to do that?
I found it
Put the code into:
<string>Perl</string>
<key>patterns</key>
<array>
>HERE<
In case you want to quick create your own language from perl, copy whole dir and in each file change string “perl” with your language name.
This code is from Javascript ( JavaScript.tmLanguage )
code:
<dict>
<key>begin</key>
<string>/\*\*(?!/)</string>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.js</string>
</dict>
</dict>
<key>end</key>
<string>\*/</string>
<key>name</key>
<string>comment.block.documentation.js</string>
</dict>
<dict>
<key>begin</key>
<string>/\*</string>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.js</string>
</dict>
</dict>
<key>end</key>
<string>\*/</string>
<key>name</key>
<string>comment.block.js</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.js</string>
</dict>
</dict>
<key>match</key>
<string>(//).*$\n?</string>
<key>name</key>
<string>comment.line.double-slash.js</string>
</dict>
Yes that is right.
I need to create highlight for QORE language. It is like perl but more powerful.