When doing the language syntax reading in a Visual Studio extension project I can already read the following:
<span class="myclass"></span>
It is relatively easy to manage read states InTag
, AttributeNaming
, AttributeValue
(I created these states). Make the correct color application for the Colorizer class and everything.
The problem:
Visual Studio through its API sends me the code line by line expecting me to return the read tokens. How do I read a broken line?
<span
class="myclass"></span> <!-- Meu parser verá erros e textos apenas -->
Is there any way to group these lines together? Does outlining of code help in these cases? How do I use it?
In this case for example, reading a more complex language, how could I create the outlining and indefinite states? THE; In the namespace, B: class name declaration, C: in class, D,: method declaration, E: method name, F: method body, for example.