问题描述
你好.我正在为我们内部的开源DSL平台Rhetos(https://github.com/rhetos/rhetos)写语言支持.除了关键字和注释,Rhetos还允许用户编写SQL代码段作为某些关键字(概念)的参数.在那儿 一种使用SQL分类器/标记符作为我自己的一部分的方法?目前,我的代码主要基于ook示例(https://github.com/Microsoft/VSSDK-Extensibility-Samples/tree/master/Ook_Language_Integration).例如,我将如何导入SQL标记程序并使用它 作为我自己的一部分,这样我就可以在引号标签之间告诉它,并将文本分类为SQL.我将对C#标记器/分类器执行类似的操作,但是使用撇号作为分隔符.它基本上与html/cshtml中的脚本标签中的Javascript分类相同 文件.
Hello. i am writting language supportu for our in house, yet open source DSL platform, Rhetos (https://github.com/rhetos/rhetos). Besides keywords and comments, Rhetos allows users to write SQL code snippets as parameter of some keyword (concept). Is there a way to use SQL classifier/tagger as part of my own? Currently I am basing my code mostly on ook example (https://github.com/Microsoft/VSSDK-Extensibility-Samples/tree/master/Ook_Language_Integration). How would I, for example, import SQL tagger and use it as part of my own, so that I can tell it between quotations tag, and classify text as SQL. I would do similar with C# tagger/classifier, but use apostrophe sign as delimiter. It is basically the same as classifying Javascript inside script tags in html/cshtml files.
谢谢
推荐答案
由于我们的论坛正在讨论VS通用问题,例如如何设置/配置Visual Studio和Visual Studio工具.
Since Our forum is discussing about VS general question like how to set/configure Visual Studio and Visual Studio tools.
对于您的问题,它似乎与Visual Studio集成更相关.我将您的主题移到了相应的论坛上以获得更好的支持.
And for your question, it seems like more related to the Visual Studio integration. I moved your thread to the corresponding forum for better support.
感谢您的理解.
最好的问候,
肖湖
这篇关于在自定义语言服务中使用嵌入式语言语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!