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

Added ignored patterns and fixed case-insensitive patterns #27

Merged
merged 2 commits into from
Mar 7, 2016
Merged

Added ignored patterns and fixed case-insensitive patterns #27

merged 2 commits into from
Mar 7, 2016

Conversation

jaller94
Copy link
Collaborator

@jaller94 jaller94 commented Mar 5, 2016

This removes the case-insensitivity from <code> and <file>.
Both unformatted tags (<nowiki> and %%) get updated to unicode detection.
New support for <php>, <PHP>, <html>, <HTML> and space / tab intended blocks.

@jaller94 jaller94 changed the title Added ignored patterns and fixed case-insensitive patterns; fixes #26 Added ignored patterns and fixed case-insensitive patterns Mar 5, 2016
@jaller94
Copy link
Collaborator Author

jaller94 commented Mar 5, 2016

fixes #26

@jaller94
Copy link
Collaborator Author

jaller94 commented Mar 5, 2016

Found more cases that are not covered by this fix.

  a
  [[wanted 1]]
  b
  [[wanted 2]]
  [[not wanted]]

  [[not wanted]]
  1
  [[not wanted]]
  [[wanted 3]]

@jaller94
Copy link
Collaborator Author

jaller94 commented Mar 6, 2016

@\n( {2,}|\t)[^\*\- ].*?\n@su is problematic since it uses \n at the start and at the end. Both get removed by the ignore rule but they are required for the next line's match.
Need to find a way to match for the new lines without matching them. ^ and $ somehow did not work in my tests.

@jaller94
Copy link
Collaborator Author

jaller94 commented Mar 7, 2016

@^( {2,}|\t)[^\*\- ].*?$@mu works.
It does not remove the new line characters and treats every line individually.

jaller94 added a commit that referenced this pull request Mar 7, 2016
Added ignored patterns and fixed case-insensitive patterns
@jaller94 jaller94 merged commit acf5084 into lupo49:master Mar 7, 2016
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

Successfully merging this pull request may close these issues.

1 participant