Home Download Buy Blog Forum Support

Syntax hightlighting based on real language parser

Syntax hightlighting based on real language parser

Postby tillda on Thu Mar 28, 2013 11:52 pm

Is it possible to write a syntax definition that would colour/highlight some source code based on a real language grammar and parser and not on a set of regular expressions? For example CodeMirror has a basic parser API that I can plug in.
Posts: 1
Joined: Thu Mar 28, 2013 11:49 pm

Re: Syntax hightlighting based on real language parser

Postby robertcollier4 on Fri Mar 29, 2013 9:25 am

This would be a great feature in v3 that would compel many people to upgrade - perhaps integration with something like Colorer take5?

Colorer take5 is a syntax highlighting and text parsing library, that provides services of text parsing in host editor systems in real-time and transforming results into colored text. Result information allows to search and build outlined lists of functions, structures, and to search and indent programming language constructions (brackets, paired tags). Colorer uses pure C++, XML, it is fully portable and works on either win32/unix/mac platforms.

Colorer-take5 Library Features
Supports more than two hundred programming languages, scripts and markups.
Uses powerful and flexible HRC syntax description language, based on regular expressions and scheme (context) structure.
Core is on portable C++. Can be easily integrated into any target application.
Posts: 150
Joined: Sun Feb 24, 2013 5:37 pm

Re: Syntax hightlighting based on real language parser

Postby sarevofaona on Sun Mar 31, 2013 12:11 pm

I'd second this - the C syntax highlighting is quite broken and fixing the regex is a non-starter for me because it's incomprehensible. :(
Sarev of Aona
Sublime Newbie ;)
Posts: 8
Joined: Sun Mar 31, 2013 12:08 pm

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 24 guests