Bachir Bendrissou
Bachir Bendrissou
Hi @msagca That does resolve the issue. But now we can't have line comments that start with the symbol `[`.
Here is a short example: ``` local function name_s ( ) --[aaa end ``` This is rejected by the new grammar. But accepted by the Lua compiler.
Hi @msagca Yes, you are right. This conforms to the spec. Though the official implementation seems to treat `--[aaa` as a short comment, which should not be the case. Instead...
Hi @mercurydarkork I tried function `cJSON_GetErrorPtr`, but it's not working. It seems that the parser would parse the first valid prefix and ignore the rest. For example this input won't...
Hi @amitguptagwl Can you please confirm if this is a valid issue?
I believe this is a syntax error. The expression does not conform to the XML syntax, or the [XML grammar](https://github.com/antlr/grammars-v4/blob/master/xml/XMLParser.g4). So I assume this is unintended behaviour?
Hi @amitguptagwl As shown above, I have enabled the `-v` option. I assume the `-v` flag should force the validation of the input before parsing. Is that correct?
Hi @amitguptagwl I have tried the code above: ``` #!/usr/bin/env node const {XMLValidator} = require("../fxp"); const result = XMLValidator.validate(' ', { allowBooleanAttributes: true }); console.log(result); ``` Output is: ``` true...
Hi @amitguptagwl I tried the above input from the code: ``` #!/usr/bin/env node const {XMLValidator} = require("../fxp"); const result = XMLValidator.validate(' ', { allowBooleanAttributes: true }); console.log(result); ``` Output is:...
This works well. Thank you @daschfg.