607 Commits

Author SHA1 Message Date
Jacob H. Pratt
9f4407ca29 Add require_relative in ruby syntax highlighting (#1472) 2017-04-29 11:20:38 +10:00
A. Tombs
33762f5225 Add parfor to Matlab keyword list (#1021)
Add parfor to Matlab keyword list

Add `parfor` to the list of keywords to be highlighted in Matlab script sources. `parfor` is a Matlab keyword that can be used in place of `for` to achieve parallel processing.
2017-03-22 10:06:47 +10:00
Colomban Wendling
93f273428a Update for new Scintilla styles 2017-02-21 14:16:56 +01:00
Colomban Wendling
2c1a71ad2b Use :select/:deselect signals for consistency
Instead of having a handler on 2 separate objects, use :select and
:deselect on the same one.  Those signals are appropriate, as the
documentation mentions that submenus are popped up on :select.
2017-02-05 15:34:24 +01:00
Forkest
67d6562f20 Fix cut and copy actions in non-Latin keyboard layouts
Mark the associated menu items sensitive when the menu is hidden, so
that GTK's accelerator handling can trigger them.  This works around
incorrect handling in Geany's code of keybindings coming from multiple
layouts for cut/copy/delete actions.

Partial workaround for #998, #1286 and #1368.
2017-02-05 12:52:51 +01:00
Colomban Wendling
00a3aef94d Merge pull request #1361 from Akronix/keywords-js.filetypes
Updated filetypes.javascript keywords
2017-01-23 14:10:45 +01:00
Abel 'Akronix' Serrano Juste
c6984699d3 Removed 'alert' from secondary keywords since it depends on a DOM environment 2017-01-14 21:26:36 +01:00
Abel 'Akronix' Serrano Juste
c328051382 Some adjustmenys in javascript keywords: Deleted 'each' from secondary keywords 2017-01-11 23:18:38 +01:00
Abel 'Akronix' Serrano Juste
6fad4c017c Updated js keywords with ES6 2017-01-11 23:05:05 +01:00
Colomban Wendling
9fdb014b07 javascript: Partial highlighting of ES6 template strings
This doesn't support nested templates or escaped `es, but at least
handles the most obvious cases for now.

Part of #934.
2016-12-18 17:38:37 +01:00
SukkoPera
21b37f553f Add Arduino custom filetype
Closes #1339
2016-12-16 02:55:35 -08:00
Frank Lanitz
8330c68a29 Fix a small grammatical issue 2016-11-18 02:23:50 +01:00
Colomban Wendling
6cdb1842be VTE: Remove support for background image
It's a more than questionable feature that was dropped in VTE 2.91, so
remove it altogether instead of conditionally supporting it.
2016-10-29 16:12:32 +02:00
Colomban Wendling
ae114e263c Merge pull request #1185 from b4n/error-indic-color
Allow to configure the error indicator color
2016-10-29 15:15:43 +02:00
Colomban Wendling
bee3806d47 Allow to configure the error indicator color
Related to #1116.
2016-10-24 12:27:59 +02:00
Simon Marchi
13ef73d109 Recognize .exp (Expect) files as Tcl
Expect [1] scripts filenames generally end in .exp, although the code
itself is actually in Tcl.  I find my self manually selecting Tcl quite
often, so I think it would be nice if Geany would recognize it direcly
as Tcl.

[1] http://expect.sourceforge.net/

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2016-09-09 20:52:01 -07:00
Colomban Wendling
c9d0bd7214 Inherit C lexer_properties in all filetypes inheriting C styles
`lexer.cpp.track.preprocessor` lexer properties affects which styles
are used, and we don't set those, so no filetype inheriting C styles
should set it to 1.

Similarly, some properties like `styling.within.preprocessor` are
mostly general settings rather than selecting syntax details, so they
should probably match in all filetypes for consistency.

So, inherit the C lexer_properties everywhere C styles are used, and
only override specific properties in the inheriting filetype.
2016-09-06 12:18:48 +02:00
Colomban Wendling
bbdf56fc2e Haxe: Do not track preprocessor for styling
We don't set the styles for inactive preprocessor sections, so we
should make sure they aren't used.  Also, Haxe has different
preprocessor directives than C does, which confuses LexCPP tracking
anyway.

Fixes #936.
2016-09-06 11:35:11 +02:00
Colomban Wendling
09796ef727 Remove SciTE properties from filetype definitions
Those are SciTE-specific things that Scintilla itself never used,
and that were simply erroneously imported into Geany.
2016-09-06 11:08:52 +02:00
Colomban Wendling
a4a4accc42 Add support for keeping the cursor a number of lines from the edges
Closes #1152.
2016-08-21 13:56:04 +02:00
Colomban Wendling
5d74eef546 Set custom selection color on no-match search entry on GTK2
Follows the GTK3 behavior, and avoid text becoming invisible if the
selection background is too light (unlikely, but possible).
2016-07-16 03:35:03 +02:00
Colomban Wendling
4b163bcdab Restore custom selection color on no-match search entry on GTK3 2016-07-16 03:35:03 +02:00
Colomban Wendling
a35816c92f Fix custom search entry background on Adwaita 3.20 under GTK2
Adwaita 3.20 on GTK2 uses the pixmap engine to set a background image
on all states of all GtkEntries.  Earlier versions did the same but
with a transparent background, thus not hiding our background color.

Fixes #1135, fixes #1101.
2016-07-16 03:27:43 +02:00
Colomban Wendling
87ab6052bd CSS: Add missing :last-child pseudo-class
Fixes #1102.
2016-07-01 01:52:05 +02:00
Philipp Wiesemann
be4ed86f35 Change array type syntax in Java file template
Square brackets following the element type are more common.
2016-06-15 23:05:09 +02:00
Colomban Wendling
60147a8c8d Merge pull request #857 from techee/cpp_h
Treat the "h" extension as a C++ file
2016-06-10 23:30:02 +02:00
Colomban Wendling
e328434a1f Merge pull request #980 from cjmayo/ecma_classes
javascript: Add ECMAScript 6 classes keywords
2016-06-08 23:54:39 +02:00
Colomban Wendling
9681888806 Merge pull request #1014 from b4n/streamline-builtin-tags
Streamline builtin tags
2016-05-15 15:58:05 +02:00
elextr
b81f41ce32 Merge pull request #1024 from Yanpas/java-review
Reviewed java keywords
2016-05-14 19:36:24 +10:00
Alexander
6b608974c0 Fix Haskell single line comments by adding space
Haskell single line comments consist of at least two dashes "--",
not followed by special symbol.
So in practice everywhere in code you will see a space following "--".
Reference: Haskell 2010 Language Report -> Chapter 2 -> Lexical Structure
2016-05-06 02:15:51 +04:00
Yan Pashkovsky
175d987305 Reviewed java 2016-05-04 16:21:13 +03:00
Colomban Wendling
c4f56bfcd6 Fix some custom CSS selectors to work on GTK 3.20 2016-05-02 15:26:29 +02:00
Colomban Wendling
62be0b9b96 Fix our tab close buttons appearance on GTK 3.20 2016-05-02 15:07:50 +02:00
Colomban Wendling
854a5d5af8 Don't special-case tags files distributed with Geany
Load those tags files just as any user tags files, removing
unnecessary code redundancy.
2016-04-29 01:39:11 +02:00
Colomban Wendling
6b262bb4ec Make html_entities.tags a real tags file
This removes a fair amount of specific code that is just as well
handled by the generic symbols completion code.
2016-04-29 01:35:21 +02:00
Quentin Glidic
1f392b75bf ui-utils: Load per-version GTK+ CSS file
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2016-04-14 13:17:12 +02:00
Chris Mayo
3dda6180ce javascript: Add support for ECMAScript 6 classes keywords
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes
http://www.ecma-international.org/ecma-262/6.0/#sec-keywords
http://www.ecma-international.org/ecma-262/6.0/#sec-constructor
2016-03-28 19:40:37 +01:00
Jiří Techet
3640b3bc44 Move *.tags files to the tags directory
ignore.tags is still in ~/.config/geany
2016-03-13 17:35:14 +01:00
Jiří Techet
e513e5a099 Move filetypes.* to the filedefs directory 2016-03-13 17:35:08 +01:00
Colomban Wendling
0556b89d08 Merge pull request #603 from eht16/create_php_tags_update
Rewrite PHP tag creation script using up to date upstream tag
definitions.
2016-03-06 16:28:03 +01:00
Enrico Tröger
b0cf5f6cda Rewrite PHP tag creation script using up to date upstream tag definitions
Fixes #584.
2016-03-06 09:41:39 +01:00
Colomban Wendling
2f55540f75 Merge pull request #582 from techee/tags_are_symbols
Use the word "symbol" instead of "tag" in the UI and documentation
2016-02-17 22:54:55 +01:00
Jiří Techet
9b686871de Use the word "symbol" instead of "tag" in the UI and documentation
For users a tag is <this> so the naming can be confusing.

The only exception where we probably shouldn't use the word symbol is the
"tags file" (*.tags) containing global tags - this has already the "tags"
extension and is more related to ctags and using "symbols file" is a bit
strange in this case.

As a result, the only places where this patch leaves the word "tag" are:

* phrase "tags file(s)"
* phrase "tags parser(s)"
* documentation mentioning the "tags" directory
* documentation mentioning the *.tags extension

and of course where it means the HTML/XML markup <thing>. The rest of the
uses of the word "tag" is replaced with "symbol".

Documentation is updated accordingly.

Fixes #579.
2016-02-17 22:38:00 +01:00
ZoomRmc
4316872503 Rust: Updated suggested indentation defaults
Indentation per official style guide:
https://github.com/rust-lang/rust/blob/master/src/doc/style/style/whitespace.md

Closes #595.
2016-02-17 16:34:00 +01:00
Daniel Șuteu
f3a5dd609a Add file-extensions for Clojure
The extensions are from Wikipedia: https://en.wikipedia.org/wiki/Clojure

Closes #842.
2016-01-18 03:43:35 +01:00
Colomban Wendling
50212093ba Merge pull request #831 from b4n/cuda/tags
CUDA: Use C++ ctags parser
2016-01-18 03:34:02 +01:00
Colomban Wendling
6e0d4ac6ec Merge pull request #581 from techee/symbollist_sort
Make it possible to define default symbol_list_sort_mode
2016-01-13 17:43:03 +01:00
Jiří Techet
1ea072e125 Make it possible to define default symbol_list_sort_mode
Both sorting by name and appearance makes sense for most languages. Some
users may prefer sorting by appearance so make it configurable in
preferences (the possibility to override the settings for specific
filetypes is preserved).

Thanks to Colomban Wendling for lots of improvements of this patch.

Fixes #313.
2016-01-11 23:36:50 +01:00
Colomban Wendling
28f7c169fc Merge pull request #652 from b4n/kb/file-properties
Allow to set a keybinding for File->Properties
2016-01-09 20:07:23 +01:00
Jiří Techet
c7bf89a464 Treat the "h" extension as a C++ file
The extension is used by both C and C++ and lexing/parsing C headers with
the C++ parser causes less problems (identifiers named like C++ keywords
get highlighted and tags aren't generated for them) than parsing C++
headers with the C parser (parsing and lexing completely broken).
2016-01-07 23:28:18 +01:00