Hello,
I’m trying to build a syntax highlighting for markup language but found it quite tricky. I’m know the regular expressions, installed the AAAPackageDev package, successfully created a very trivial highlighting file but then completely stuck on the scopes and how to highlight/define them.
How it looks now:
{
"name": "IVY Markup",
"scopeName": "text.ivy_markup",
"fileTypes": "ivy" ],
"patterns":
{
"match" : "^h\\d. .*",
"name" : "keyword.ivy_markup",
"comment" : "Heading"
},
{
"match" : "\\*\\w(.*\\w)?\\*",
"name" : "markup.bold.ivy_markup",
"comment" : "Effects: strong"
},
{
"match" : "\\_\\w ]+\\_",
"name" : "markup.italic.ivy_markup",
"comment" : "Effects: emphasis"
},
{
"begin" : "^h\\d. .*",
"end" : "^h\\d. .*"
}
],
"uuid": "7d7e0c90-9df4-11e2-9e96-0800200c9a66"
}
And it looks like it works well, but it does not apply any formatting to the text that intended to be bold or italic, e.g. “test bold italic”.
How this should be specified? Thanks!