new lexer: thrift#787
Conversation
| state :root do | ||
| mixin :comments_and_whitespace | ||
|
|
||
| rule name do |m| |
There was a problem hiding this comment.
Why don't you role regexp, type DSL?
There was a problem hiding this comment.
Usually, the biggest performance loss is in regexp scanning. Using this strategy, we only need to scan once - if the name regexp fails to scan, the lexer can simply skip this entire block. On the other hand, if it matches, we only need to perform a small number of Set lookups to determine the correct token.
|
Last active in 2017 but still open; any outlook in Thrift lexer support coming to Rouge highlighting? |
|
Is there any change to merge the Thrift lexer? :-) We are using Jekyll for the Thrift website, it is kind of shame that there is no syntax highlighting on the homepage https://thrift.apache.org/
|
|
After a review against IDL spec, there are a few gaps:
@jneen Would you mind if I pick up from where you left and submit a new PR? |
|
Please do - this is separate from IDLang other than in name, correct? |
|
Closing in favour of #2284 |


Closes #784 - Implements a lexer for Apache Thrift.