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

Disable Meta-Symbols #1

Open
3F opened this issue Feb 11, 2017 · 0 comments
Open

Disable Meta-Symbols #1

3F opened this issue Feb 11, 2017 · 0 comments

Comments

@3F
Copy link
Owner

3F commented Feb 11, 2017

v1 - Same char to escape

  • 1024*2 -> 10247412
  • 1024**2 -> 1024*2
  • 1024***2 -> 1024*0xD2
  • one|two -> one or two
  • one||two -> one|two
  • one|||two -> one| or two
  • one||||two -> one||two
  • one|||||two -> one|| or two
  • one|*||two -> one or |two
  • one|*||||two -> one or ||two

... for each available meta-symbol

upd: no, ESS version provides #, that means 1 any symbol, thus we cannot use this because of: track-num:*###7400 and similar.

v2 - markers via flags

We'll add @ + special flag ([a-z0-9] only) + @@ to escape this flag

Then we can use unified combinations of this, for example:

  • @ + d for disable all meta-symbols before new @(?) -> @d ... @
    • 1024*2 -> 10247412
    • 1024@d*@2 -> 1024*2 or @d1024*2@ -> 1024*2
    • @d1024*@*2 -> 1024*0xD2
    • @@d1024*@*2 -> @@d1024*@0xD2 -> note: @* ok (@ + [a-z0-9])
    • one|two -> one or two
    • @done|two@ -> one|two
    • @done|@|two -> one| or two
    • @done||two@ -> one||two
    • @done||@|two -> one|| or two
    • one|@d|two@ -> one or |two
    • one|@d||two@ -> one or ||two

well, this is more powerful way, but probably more hard for view o_o and:

  • v2: one|@d||two@ <- ?@done|@@d||two@@@
  • v1: one|@d||two@ <- one||@@d||||two@@

v3 - markers via single tilde '~'

v2 can also be as simple ~ ... ~ + to escape ~~:

  • one|@d||two@ <- ~one|@d||two@~
  • one|~d||two~ <- ~one|~~d||two~~~
@3F 3F added the enhancement label Feb 11, 2017
@3F 3F mentioned this issue Feb 11, 2017
3 tasks
@3F 3F added the support label Apr 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant