1 |
/* |
/* |
2 |
Copyright (c) 2014-2019 Christian Schoenebeck |
Copyright (c) 2014-2020 Christian Schoenebeck |
3 |
|
|
4 |
This file is part of "gigedit" and released under the terms of the |
This file is part of "gigedit" and released under the terms of the |
5 |
GNU General Public License version 2. |
GNU General Public License version 2. |
139 |
m_stringTag->property_foreground() = "#c40c0c"; // red |
m_stringTag->property_foreground() = "#c40c0c"; // red |
140 |
m_tagTable->add(m_stringTag); |
m_tagTable->add(m_stringTag); |
141 |
|
|
142 |
|
m_patchTag = Gtk::TextBuffer::Tag::create(); |
143 |
|
m_patchTag->property_foreground() = "#FF4FF3"; // pink |
144 |
|
m_patchTag->property_weight() = PANGO_WEIGHT_BOLD; |
145 |
|
m_tagTable->add(m_patchTag); |
146 |
|
|
147 |
m_commentTag = Gtk::TextBuffer::Tag::create(); |
m_commentTag = Gtk::TextBuffer::Tag::create(); |
148 |
m_commentTag->property_foreground() = "#9c9c9c"; // gray |
m_commentTag->property_foreground() = "#9c9c9c"; // gray |
149 |
m_tagTable->add(m_commentTag); |
m_tagTable->add(m_commentTag); |
610 |
const LinuxSampler::VMSourceToken& token = tokens[i]; |
const LinuxSampler::VMSourceToken& token = tokens[i]; |
611 |
|
|
612 |
if (token.isKeyword()) { |
if (token.isKeyword()) { |
613 |
applyCodeTag(m_textBuffer, token, m_keywordTag); |
if (token.text() == "patch") |
614 |
|
applyCodeTag(m_textBuffer, token, m_patchTag); |
615 |
|
else |
616 |
|
applyCodeTag(m_textBuffer, token, m_keywordTag); |
617 |
} else if (token.isVariableName()) { |
} else if (token.isVariableName()) { |
618 |
applyCodeTag(m_textBuffer, token, m_variableTag); |
applyCodeTag(m_textBuffer, token, m_variableTag); |
619 |
} else if (token.isIdentifier()) { |
} else if (token.isIdentifier()) { |