summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/highlighter.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Correctly include KSyntaxHighlighting headersDmitry Shachnev2022-05-241-2/+2
| | | | | | | | | | | | | | | | | | | In external KSyntaxHighlighting, these headers now have paths like /usr/include/KF5/KSyntaxHighlighting/KSyntaxHighlighting/AbstractHighlighter, where /usr/include/KF5/KSyntaxHighlighting is passed to compiler as include path. Old headers which had only one KSyntaxHighlighting fragment in path were removed in v5.94.0: https://invent.kde.org/frameworks/syntax-highlighting/-/merge_requests/305 Adjust our vendored version to make the code work with both external and vendored versions. Change-Id: Iadcc668c3c705c563ae359301d227ee19eadca0f Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
* Highlighter: Fix typoEike Ziller2020-03-241-3/+3
| | | | | Change-Id: I491f7c58733a333a5cdcf2ebae67f9d4bff1eeef Reviewed-by: David Schulz <david.schulz@qt.io>
* Highlighter: Remove unused methodsEike Ziller2020-03-241-3/+0
| | | | | | | We want all the possible definitions nowadays. Change-Id: I491d40b103a2daf187571910bb43c32e0bfbb1e4 Reviewed-by: David Schulz <david.schulz@qt.io>
* Highlighter: clarify 'Update Definitions' actionDavid Schulz2019-11-041-1/+2
| | | | | | | | | | | | by renaming it to Download Definitions and adding a tooltip stating that it collects all definitions that are missing or were updated after the release and downloads it to the ksyntax highlighting user folder. Also adding a separate reload definitions button in the settings behind the user path. Change-Id: I059cc98e33147cae910fa4fdb35631d1dca81448 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* texteditor: Remove unused forward declarationLaurent Montel2019-10-181-1/+0
| | | | | Change-Id: I5edbbbecef472230a81827aa0206533918d97230 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Utils: Rename FileName to FilePathhjk2019-05-281-3/+3
| | | | | | | | More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* TextEditor: fix folding regression in generic highlighterDavid Schulz2019-05-031-0/+1
| | | | | | Fixes: QTCREATORBUG-22346 Change-Id: Ib35a70da77ffaa3b84e1d85a855625e2086625da Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* TextEditor: add option to remember highlighter definitionDavid Schulz2019-02-281-2/+8
| | | | | | | | | Add a button to the multiple definition found info that saves the definition of the current highlighter for the open document. Change-Id: I04b1b7571a864d781747547a1d315ec25bb6b5a1 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* TextEditor: Show info when multiple highlight definitions are availableDavid Schulz2019-02-111-0/+1
| | | | | | | | | Show an editor info bar when multiple highlight definitions can be found for a single file or mime type. Add a combo box to the info that allows the user to choose between them. Change-Id: I07278d065e19d4e04fba24a6d789c8b6c9f55d60 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* TextEditor: return all definitions for a file name/mimetype/documentDavid Schulz2019-02-071-0/+5
| | | | | Change-Id: Ifd4ee9ab71b95a66cf11e30e2de688d421094a4a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* TextEditor: shorten namespace noiseDavid Schulz2019-02-071-3/+4
| | | | | Change-Id: I16bc218ccefb7234cb9c1299ee3022549b178600 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* TextEditor: add convenient definition for document functionDavid Schulz2019-02-071-0/+2
| | | | | Change-Id: I8bbaec71a4682e36d3919924932b410e2e9d74a9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* TextEditor: replace generic highlighter with ksyntaxhighlightingDavid Schulz2019-01-281-0/+56
Fixes: QTCREATORBUG-21029 Change-Id: I9894c4384e0e47da6bf030b7b8e07c3ad4737ff3 Reviewed-by: Orgad Shaneh <orgads@gmail.com>