Skip to content
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

ShExC grammar for comment has extraneous | '\\/') #114

Open
ericprud opened this issue Feb 19, 2021 · 0 comments
Open

ShExC grammar for comment has extraneous | '\\/') #114

ericprud opened this issue Feb 19, 2021 · 0 comments

Comments

@ericprud
Copy link
Contributor

ericprud commented Feb 19, 2021

http://shex.io/shex-semantics/#term-PASSED_TOKENS says (see table at bottom 'cause markdown is being weird).

On the last line, this clause is not needed: `| '\\/')`.

Demo'd using PCRE as implemented in node javascript:

> console.log("ab/*c*\\/d*/ef")
ab/*c*\/d*/ef
undefined
> "ab/*c*\\/d*/ef".match(/\/\*((?:[^*]|\*[^/])*)\*\//)
[
  '/*c*\\/d*/',
  'c*\\/d',
  index: 2,
  input: 'ab/*c*\\/d*/ef',
  groups: undefined
]
[98]PASSED TOKENS::=
[ \t\r\n]+
| "#" [^\r\n]*
| "/*" ([^*] | '*' ([^/] | '\\/'))* "*/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant