Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: IDL syntax highlighting #126

Open
GoogleCodeExporter opened this issue Jan 14, 2016 · 5 comments
Open

Feature request: IDL syntax highlighting #126

GoogleCodeExporter opened this issue Jan 14, 2016 · 5 comments

Comments

@GoogleCodeExporter
Copy link

IDL is a math/science analysis code package from ITTVIS 
http://www.ittvis.com/ProductServices/IDL.aspx.  I have at least two code 
projects based primarily on IDL.  It would be nice to have syntax highlighting 
for them.  Highlighting exist for, e.g., Notepad++ 
(http://pocaracas.wordpress.com/2009/01/25/idl-syntax-highlighting-in-notepad/) 
and other programs (http://idl.tamu.edu/syntax_coloring.html) already.

Original issue reported on code.google.com by keflavich on 3 Aug 2010 at 3:49

@GoogleCodeExporter
Copy link
Author

What are the file extensions typically used for IDL source files?

Do you know of any lexical grammars for the language?  I don't have any license 
to Notepad or any user extensions, so can't base an implementation from them.

Original comment by [email protected] on 3 Aug 2010 at 4:52

@GoogleCodeExporter
Copy link
Author

IDL files are typically .pro.

I don't know exactly what a "lexical grammar" should include, but as far as I 
can tell there are syntax highlighting routines for both vim and emacs, the 
latter at idlwave.org.  I can't find the vim syntax highlighting routines.

Original comment by keflavich on 3 Aug 2010 at 8:11

@GoogleCodeExporter
Copy link
Author

I found the VIM idl syntax highlighting (attached).  "highlight" 
http://www.andre-simon.de/ also has a highlighting setup, but it is less 
intricate.

Original comment by keflavich on 3 Aug 2010 at 8:32

@GoogleCodeExporter
Copy link
Author

Thanks keflavich, but I can't copy VIM or emacs modes without committing to 
their license, so I deleted your attachment.

By a lexical grammar, I mean the grammar used by a tokenizer.
A lot of parser generators (e.g. yacc) have two grammars : a lexical grammar 
specified in terms of regular expressions or a regular subset of BNF used to 
break the input into a list of tokens, and a richer grammar used to build a 
parse tree usually specified in some kind of BNF form.  I only need the former.

Original comment by [email protected] on 26 Oct 2010 at 4:27

@GoogleCodeExporter
Copy link
Author

Unfortunately, as far as I can tell, there is no yacc grammar or lexical 
grammar available for IDL.  I've asked the experts I know and they seemed to 
have no idea.  I'll update this thread if I ever find one, though.  Thanks for 
the effort.

Original comment by keflavich on 26 Oct 2010 at 11:12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant