mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-18 14:31:27 +00:00
Added special escape sequences "\{", "\}", and "\|" when processing
getNodeLabel(); these sequences allow the user to specify the characters '{', '}', and '|' in the label, which facilitate breaking the label into multiple record segments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46283 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f9c98e650d
commit
f02e26abc0
@ -48,8 +48,13 @@ namespace DOT { // Private functions...
|
||||
Str[i] = ' ';
|
||||
break;
|
||||
case '\\':
|
||||
if (i+1 != Str.length() && Str[i+1] == 'l')
|
||||
break; // don't disturb \l
|
||||
if (i+1 != Str.length())
|
||||
switch (Str[i+1]) {
|
||||
case 'l': continue; // don't disturb \l
|
||||
case '|': case '{': case '}':
|
||||
Str.erase(Str.begin()+i); continue;
|
||||
default: break;
|
||||
}
|
||||
case '{': case '}':
|
||||
case '<': case '>':
|
||||
case '|': case '"':
|
||||
|
Loading…
x
Reference in New Issue
Block a user