brendan-r / highlightjs_stan

:art: Syntax highlighting for the probabilistic programming language, Stan (http://mc-stan.org)
1 stars 1 forks source link

Use patterns from Atom package grammar for Stan #3

Open jrnold opened 8 years ago

jrnold commented 8 years ago

Okay, this isn't really an issue, but it might be useful :-)

I haven't spent much time looking at it, but at first glance looks like the grammar for the highlightjs lexer is pretty similar to the one used by Atom/Sublime Text/Textmate. You should check out the patterns used in the grammar for the Atom package: https://github.com/jrnold/atom-language-stan. I'll also take a look at yours to see if there's anything I missed or you did better!

brendan-r commented 8 years ago

Fantastic, very glad to have your input on this!

I'll have a proper poke around later this week and report back.

jrnold commented 8 years ago

Also, here's the link to the Stan highlighting definition in the Rstudio source: rstudio/src/gwt/acesupport/acemode/stan_highlight_rules.js