-
Notifications
You must be signed in to change notification settings - Fork 84
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
Parse error when multiple spaces in CFML tag #243
Comments
fixed in cfparser develop branch. |
Looks like this issue is still present in CFLint at 1c3c2d5. It wasn't yet merged into the cfparser version that's included in this CFLint build? |
You are right. Sorry. It is included in cfparser 2.4.3 now |
This one just came back -- the code above again causes a |
On The cfreturn test is still passing in cfparser. |
The command I'm running is simply: java -jar CFLint-1.2.0-SNAPSHOT-all.jar -xml -file .\test.cfc (built from latest CFLint dev
The errors are the same whether there's a <issue severity="ERROR" id="PARSE_ERROR" message="PARSE_ERROR" category="CFLint" abbrev="PE">
<location file="C:\Inbox\cflint-test\.\test.cfc" fileName="test.cfc" function="" column="0" line="3" message="Unable to parse" variable="<EOF>">
<Expression><![CDATA[<cfreturn >]]></Expression>
</location>
</issue> and in the console: line 1:1 mismatched input '<EOF>' expecting {BOOLEAN_LITERAL, OPEN_STRING, CONTAINS, CONTAIN, GT, GTE, LTE, LT, EQ, NEQ, OR, TO, IMP, EQV, XOR, AND, NOT, MOD, VAR, NEW, FUNCTION, DEFAULT, '.', '+', '++', '-', '--', '!!', '!', '[', '(', '{', INCLUDE, ABORT, ADMIN, THROW, RETHROW, EXIT, PARAM, PROPERTY, LOCK, THREAD, TRANSACTION, SAVECONTENT, HTTP, CFHTTP, FILE, DIRECTORY, LOOP, SETTING, QUERY, STRING, NUMERIC, BOOLEAN, ANY, ARRAY, STRUCT, PRIVATE, PUBLIC, REMOTE, PACKAGE, REQUIRED, COMPONENT, LOG, APPLET, ASSOCIATE, AUTHENTICATE, CACHE, COL, COLLECTION, CONTENT, COOKIE, ERROR, EXECUTE, FORM, FTP, GRID, GRIDCOLUMN, GRIDROW, GRIDUPDATE, HEADER, HTMLHEAD, HTTPPARAM, CFHTTPPARAM, IMPERSONATE, INDEX, INPUT, INSERT, LDAP, LOCATION, MAIL, MAILPARAM, MODULE, OBJECT, OUTPUT, POP, PROCESSINGDIRECTIVE, PROCPARAM, PROCRESULT, QUERYPARAM, REGISTRY, REPORT, SCHEDULE, SCRIPT, SEARCH, SELECT, SERVLET, SERVLETPARAM, SET, SILENT, SLIDER, STOREDPROC, TABLE, TEXTINPUT, TREE, TREEITEM, UPDATE, WDDX, ZIP, CFCUSTOM_IDENTIFIER, IDENTIFIER, INTEGER_LITERAL, '#', FLOATING_POINT_LITERAL} |
@mpaluchowski , I see it now. Thanks! It is fixed. |
The following code will produce a
PARSE_ERROR
at line 3:because of the double space in
<cfreturn >
. There's no error when the tag contains either a single space<cfreturn >
or no space before the closing>
.The text was updated successfully, but these errors were encountered: