Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Porting AsciiDoctor regex for monospace #60

Merged
merged 1 commit into from
Apr 27, 2016

Conversation

ldez
Copy link
Member

@ldez ldez commented Apr 24, 2016

@@ -381,8 +381,9 @@
#
# `Text in {backticks}` renders exactly as entered, in `monospace`.
{
'match': '(?<=^|\\s)`[^`]+`'
'name': 'markup.raw.inline.asciidoc'
'match': '(^|[^\\p{Word};:"\'`\\}])((?:\\[([^\\\\]]+?)\\])?`(\\S|\\S.*?\\S)`(?![\\p{Word}"\'`]))'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that we know we can use regexp groups like \p{Word}, we should probably start using them more consistently throughout the grammar. The benefit of these groups is that they are friendly to all languages (not just English).

@ldez
Copy link
Member Author

ldez commented Apr 26, 2016

If you don't have any remarks, is it possible to merge and the #58 ?
Like that I could begin to create the generator.

@mojavelinux
Copy link
Member

👍

@nicorikken nicorikken merged commit b572e20 into asciidoctor:master Apr 27, 2016
@nicorikken
Copy link
Contributor

Did a couple of practical tests and merged. Nice refactor @ldez !

@ldez ldez deleted the monospace branch April 27, 2016 13:34
@ldez ldez modified the milestones: v1.1.0, v1.0.0 May 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inline code blocks not highlighted inside parentheses
3 participants