Gosh this is an old project, but I'm still using Atom and ZenScript for CraftTweaker so I still find this package useful--thank you for creating it! I ran into a snag though, and in the rare case anyone else is in the same boat, I wanted to share my fix.
Issue:
CraftTweaker multi-line comments do not apply comment highlighting with original code. (Single-line comments work as expected.)
Original Code, at Line 50:
{
'match': '(\\/\\*(.|\\n)*?\\*\\/)'
'name': 'comment.block.zs'
},
Solution:
Replaced code. Now CraftTweaker multi-line comments apply comment highlighting.
Replacement Code:
{
'begin': '/\\*'
'end': '\\*/'
'name': 'comment.block.zs'
},
Reasoning: Atom doesn't allow regular match patterns to span multiple lines, even using \n. Only begin/end pairs are designed to span multiple lines in Atom's syntax engine.
I understand Atom stopped being supported several years ago, so if you (or anyone) has recommendations for an alternative, I'd love to hear them.
Gosh this is an old project, but I'm still using Atom and ZenScript for CraftTweaker so I still find this package useful--thank you for creating it! I ran into a snag though, and in the rare case anyone else is in the same boat, I wanted to share my fix.
Issue:
CraftTweaker multi-line comments do not apply comment highlighting with original code. (Single-line comments work as expected.)
Original Code, at Line 50:
Solution:
Replaced code. Now CraftTweaker multi-line comments apply comment highlighting.
Replacement Code:
Reasoning: Atom doesn't allow regular match patterns to span multiple lines, even using
\n. Only begin/end pairs are designed to span multiple lines in Atom's syntax engine.I understand Atom stopped being supported several years ago, so if you (or anyone) has recommendations for an alternative, I'd love to hear them.