Print F"proc.st" as Fproc.st.
* src/ltlvisit/tostring.cc: Allow '.' in bare words while printing atomic propositions. * src/ltltest/bare.test: New file. * src/ltltest/Makefile.am: Add it.
This commit is contained in:
parent
af639e58c7
commit
64484e7816
3 changed files with 36 additions and 2 deletions
|
|
@ -198,13 +198,13 @@ namespace spot
|
|||
|| *str == 'F'
|
||||
|| *str == 'G'
|
||||
|| *str == 'X'
|
||||
|| !(isalpha(*str) || *str == '_')
|
||||
|| !(isalpha(*str) || *str == '_' || *str == '.')
|
||||
|| !strcasecmp(str, "true")
|
||||
|| !strcasecmp(str, "false"))
|
||||
return false;
|
||||
// The remaining of the word must be alphanumeric.
|
||||
while (*++str)
|
||||
if (!(isalnum(*str) || *str == '_'))
|
||||
if (!(isalnum(*str) || *str == '_' || *str == '.'))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue