[ 
https://issues.apache.org/jira/browse/ESME-307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12993076#comment-12993076
 ] 

Vladimir Ivanov commented on ESME-307:
--------------------------------------

It seems the problem relates to 'spaceOrEnd' parser. As it's name suggests 
Space or EOL symbol is expected at the end of string to be parsed. But in case 
of 'How about *this*?' string, '?' symbol finishes the line, so it isn't parsed 
as expected. When I add, for example rep1('?') expression to spaceOrEnd grammar 
like this:

lazy val spaceOrEnd: Parser[Int] = EOL ^^^ 0 | (rep1(' ') | rep1('?')) ^^ {case 
lst => lst.length}

text becomes highlighted as expected. So special symbols, like '?', '!' etc 
should be clearly defined and be carefully applied to this case (to avoid 
braking another cases where 'spaceOrEnd' parser is used).

> Format rendering gets confused by some punctuation
> --------------------------------------------------
>
>                 Key: ESME-307
>                 URL: https://issues.apache.org/jira/browse/ESME-307
>             Project: Enterprise Social Messaging Environment (ESME)
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: Release 1.1
>            Reporter: Ethan Jewett
>            Assignee: Vassil Dichev
>            Priority: Minor
>             Fix For: 1.2
>
>
> Try the following messages:
> Does *this* work?
> How about *this*?
> In the first message, "this" is rendered in bold with no asterisks. In the 
> second message, it is rendered in normal text as "*this*".
> The first behavior is correct.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to