This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 251480 - Illegal State Exception
Summary: Illegal State Exception
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Other (show other bugs)
Version: 8.0.2
Hardware: Macintosh (x86) Mac OS X
: P2 normal (vote)
Assignee: issues@contrib
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-29 09:10 UTC by pknerd
Modified: 2015-04-02 10:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stackrace (5.18 KB, text/rtf)
2015-03-29 09:10 UTC, pknerd
Details
Grammer file (1005 bytes, text/rtf)
2015-03-29 09:11 UTC, pknerd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pknerd 2015-03-29 09:10:57 UTC
Created attachment 152903 [details]
Stackrace

Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Updates: NetBeans IDE is updated to version NetBeans 8.0.2 Patch 1
Java: 1.8.0_40; Java HotSpot(TM) 64-Bit Server VM 25.40-b25
Runtime: Java(TM) SE Runtime Environment 1.8.0_40-b27
System: Mac OS X version 10.10.2 running on x86_64; UTF-8; en_US (nb)


It can successfully highlight required text that is "html" but then throws this error. It throws error even if I hit Spacebar.

StackTrace attached.

HTML.jj
========
options {
  JAVA_UNICODE_ESCAPE = true;
  ERROR_REPORTING = false;
  STATIC = false;
  COMMON_TOKEN_ACTION = false;
  TOKEN_FACTORY = "Token";
  JDK_VERSION = "1.8";
  BUILD_PARSER = false;
}

PARSER_BEGIN(CFMParser)

package org.cfm.jcclexer;

import java.io.*;

/**
 * Grammar to parse Java version 1.5
 * @author Sreenivasa Viswanadha - Simplified and enhanced for 1.5
 */

public class HTMParser {}

PARSER_END(HTMParser)

/* WHITE SPACE */

/*TOKEN :
{
  < WHITESPACE:
  " "
| "\t"
| "\n"
| "\r"
| "\f">
}
*/

TOKEN :
{
  <WHITESPACE:(["\n", "\r"])+>
}
TOKEN	: { < HTML : “html” > }
MORE :
{
  < ~[] >
}
Comment 1 pknerd 2015-03-29 09:11:47 UTC
Created attachment 152904 [details]
Grammer file
Comment 2 Dusan Balek 2015-04-02 09:16:08 UTC
Problem in org.htm.lexer.HTMLexer.
Comment 3 pknerd 2015-04-02 10:27:58 UTC
Can you elaborate it?