Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>That regex would work (I believe) if you had something along the lines of <code>typedef foo;</code> To get the behavior you want, you will have to create a slightly more complex pattern entry in the tmLanguage file. As the language file is based on TextMates, you will want to have this as a reference (<a href="http://manual.macromates.com/en/language_grammars#language_grammars" rel="nofollow">http://manual.macromates.com/en/language_grammars#language_grammars</a>). I would also recommend using <a href="https://github.com/facelessuser/PlistJsonConverter" rel="nofollow">PlistJsonConverter</a> (working in JSON is easier for me than working in XML). You will probably need to define begin and end patterns (begin will probably be <code>typedef</code> end will probably be <code>;</code>). You can then apply whatever patterns you want to that group.</p> <p>As for the class name highlighting, I would look to see what, if any scopes are being applied. If none are, you will have to come up with a regex to apply the scope to those. You can then add a color entry, or use a defined one from the color scheme.</p> <p><strong>Edit:</strong></p> <p>Actually they don't appear to be JSON. I see <code>()</code> rather than <code>[]</code>. JSON is pretty simple to understand. You can look for something more in depth, but <a href="http://en.wikipedia.org/wiki/JSON#Data_types.2C_syntax_and_example" rel="nofollow">wikipedia</a> is a good place to start. What you would probably be interested in are the things under the "Rule Keys" section. I did some searching (because I knew there were some better examples out there), and came across <a href="http://docs.sublimetext.info/en/latest/extensibility/syntaxdefs.html" rel="nofollow">http://docs.sublimetext.info/en/latest/extensibility/syntaxdefs.html</a> . It goes over syntax definitions from scratch, but the most relevant section is probably <a href="http://docs.sublimetext.info/en/latest/extensibility/syntaxdefs.html#analyzing-patterns" rel="nofollow">http://docs.sublimetext.info/en/latest/extensibility/syntaxdefs.html#analyzing-patterns</a>. I don't have a regex to find class names, so you would have to come up with one yourself. If you haven't already though, you may want to search around to see if someone else has implemented a language file in a way that works for you. </p> <p>You will want to start with the built in tmLanguage file and convert that from a Plist to json. You can then edit that file and move it back. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload