Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Clarifications on Brace Matching in the Managed Package Framework

$
0
0

This is for a Visual Studio 2012 Language Package.

So, I've been trying to follow what's been documented here on MSDN. I've read through the resources regarding brace matching (Brace Matching andScanners&Parsers), but the package that I've been writing and attempting to create doesn't behave like these make it seem it should, and even when it does I need some more in-depth information.

1) I never get a parseReason of MatchBraces. Rather, I get HighlightBraces, and I haven't yet been able to get MatchBraces. This includes all actions such as moving the caret over typed braces, typing new braces, etc

2) In HighlightBraces, I realize that I have text, which is a string containing the entire source file. Do I really have to much through a giant stringevery time I want to highlight a matching brace? That seems extremely time-consuming and inefficient to me, though I very well accept that I may be wrong.

3) ParseSource returns an AuthoringScope. I can't find a single place in AuthoringScope to put any useful information about these braces that I'm trying to find. I don't know where I'm supposed to be putting what data, which the package surely needs if it's going to be matching these braces.

I'm hoping that I'm just missing something, or that I've been misreading something and that someone will be able to enlighten me, as this issue has been bothering me for a while now.


Viewing all articles
Browse latest Browse all 4410

Trending Articles