Home
IDEs Support (IntelliJ Platform) | JetBrains
Contact Support
Community
Sign in
Gregory Shrago
Total activity
512
Last activity
August 14, 2023 18:03
Member since
January 16, 2007 18:03
Following
0 users
Followed by
1 user
Votes
0
Subscriptions
214
Activity overview
Posts (3)
Comments (295)
Sort by recent activity
Recent activity
Votes
Created
January 30, 2013 20:13
Is it possible for you to create a screencast to demonstrate the problem?BAD_CHARACTER highlighting means that the JFlex lexer returns BAD_CHARACTER tokenTypes for the tokens.Possible answer:Using ...
Community
IntelliJ IDEA Open API and Plugin Development
Syntax Highlighting gets stuck
0 votes
Created
May 09, 2013 14:36
The problem is that lexer highlighting pass works on a VirtualFile (file text) level.This happens before any parsing takes place if ever.(For example for large files no parsing is performed at all....
Community
IntelliJ IDEA Open API and Plugin Development
Token mapped with PsiBuilder.remapCurrentToken still highlighted as original token
0 votes
Created
July 26, 2013 14:34
If I understand you correctly you have something like:class moduleName.className { .. }where moduleName implicitly defines the "module".I don't think this should be solved on a grammar level.The on...
Community
IntelliJ IDEA Open API and Plugin Development
Macros support in custom language
0 votes
Created
August 19, 2013 17:07
{ tokens = [ string = 'regexp:\"([^\\\"]|\\.)+\"' id = 'regexp:[\d|\w]+' ]}root ::= expr *expr ::= id '=' string ';' { pin=2; recoverUntil=recover }recover ::= !(id '=')Here's m...
Community
IntelliJ IDEA Open API and Plugin Development
Help me with grammar kit plz
0 votes
Created
September 23, 2013 17:35
1. Grammar-Kit parser expects lexer to emit tokens defined in (generated to)com.qq.coqide.syntax.parser.CoqTokenTypesYou can always check these kind of problems using debugger by placing breakpoint...
Community
IntelliJ IDEA Open API and Plugin Development
Parser not reducing expressions
0 votes
Created
October 21, 2013 20:11
The one to the left is just a synonym for PsiBuilder.getLatestDoneMarker().In terms of BNF this refers (usually) to any non-private-rule-to-the-left in a sequence.Consider after parsing some my_rul...
Community
IntelliJ IDEA Open API and Plugin Development
What does Grammar Kit's "inner" and "left" rule modifiers do?
0 votes
Created
December 03, 2013 21:56
You can always create new marker before the token, advance lexer and then close it via error(..) call thus keeping the "rule marker" intact.I don't know any other way on the parser level.
Community
IntelliJ IDEA Open API and Plugin Development
error squiggly red underline off-by-one in parser
0 votes
Created
December 03, 2013 23:06
You can get WS into the parser by returning empty TokenSet in your ParserDefinition#getWhitespaceTokens() (same applies to comments).Even when WS are skipped it is possible to use PsiBuilder#rawXXX...
Community
IntelliJ IDEA Open API and Plugin Development
error squiggly red underline off-by-one in parser
0 votes
Created
January 29, 2014 00:45
You're doing good :)However there're 2 problems: The main one: the "flat structure" of file ("solFile" rule). IntelliJ often tries to get the current (the deepest) PsiElement at some file position ...
Community
IntelliJ IDEA Open API and Plugin Development
Problems with performance in custom language plugin
0 votes
Created
February 04, 2014 16:55
Glad you got it working.For the records:Void methods are the result of the missing/incorrect psiImplUtilClass discussed here https://github.com/JetBrains/Grammar-Kit/issues/24Pins & recoverWhile ar...
Community
IntelliJ IDEA Open API and Plugin Development
Problems with performance in custom language plugin
0 votes
«
First
‹
Previous
Next
›
Last
»