diff options
author | Marco Bubke <marco.bubke@theqtcompany.com> | 2016-03-03 13:02:29 +0100 |
---|---|---|
committer | Marco Bubke <marco.bubke@theqtcompany.com> | 2016-03-07 12:07:21 +0000 |
commit | f8e64a87bbe8f4c1cfa50af4652f76a145d2a84d (patch) | |
tree | 00c9a6524e6e2dba2ddaf1a13fe49e409d0adb68 /src/plugins/texteditor/textstyles.h | |
parent | 2349b13ae59ea7a1c211436d37dbd2040c4682bc (diff) | |
download | qt-creator-f8e64a87bbe8f4c1cfa50af4652f76a145d2a84d.tar.gz |
Clang: Add Declaration highlighting
We are adding declaration detection for function to the highligher on
user request. Other declaration will follow in separate patches.
Task-number: QTCREATORBUG-15564
Change-Id: I54e97c26425f8d6e9854547d50a9ac8fa076b4e8
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
Diffstat (limited to 'src/plugins/texteditor/textstyles.h')
-rw-r--r-- | src/plugins/texteditor/textstyles.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/plugins/texteditor/textstyles.h b/src/plugins/texteditor/textstyles.h new file mode 100644 index 0000000000..f7d591b832 --- /dev/null +++ b/src/plugins/texteditor/textstyles.h @@ -0,0 +1,40 @@ +/**************************************************************************** +** +** Copyright (C) 2016 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of Qt Creator. +** +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3 as published by the Free Software +** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-3.0.html. +** +****************************************************************************/ + +#pragma once + +#include "texteditorconstants.h" + +#include <utils/sizedarray.h> + +namespace TextEditor { +using MixinTextStyles = Utils::SizedArray<TextStyle, 6>; + +struct TextStyles { + TextStyle mainStyle; + MixinTextStyles mixinStyles; +}; + +} // namespace TextEditor |