8000 ShExC grammar for comment has extraneous `| '\\/')` · Issue #114 · shexSpec/shex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
ShExC grammar for comment has extraneous | '\\/') #114
Open
@ericprud

Description

@ericprud

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,
  inpu
4C97
t: 'ab/*c*\\/d*/ef',
  groups: undefined
]
[98]PASSED TOKENS::=
[ \t\r\n]+
| "#" [^\r\n]*
| "/*" ([^*] | '*' ([^/] | '\\/'))* "*/"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0