7060 Commits

Author SHA1 Message Date
Frank Lanitz
c3aeb73194 Minimal update of Spanish translation to fix misstranslated string. 2014-02-02 21:53:27 +01:00
Frank Lanitz
465378d72a Update of Italian translation 2014-01-30 23:20:48 +01:00
Matthew Brush
986c59aecb Use GeanyFiletypeGroupID enum in a few places
Also move the `group_menus` global variable to the top of the file
with the other globals.
2014-01-28 17:16:50 -08:00
Colomban Wendling
6a85a50d21 Replace bare CTags parser ID numbers with an enumeration
Avoid using magic numbers in the source for better readability and
easier maintenance.
2014-01-29 01:34:26 +01:00
Matthew Brush
576be4ca3b Reformat builtin filetype initialization code into tabular format
* Add an initialization function ft_init()
* Add a function-like macro to call ft_init() with shorter arguments
* Search and replace old code with FT_INIT() usage
* Layout into columns and add documentation above
2014-01-28 15:32:08 -08:00
Matthew Brush
c674f0660a Cleanup filetype_make_title() a bit and use it more
* Adds TITLE_NONE, TITLE_SCRIPT and TITLE_DOCUMENT.
* Only a few filetype titles were tweaked but we should review the
  rest as we could use TITLE_SCRIPT and TITLE_DOCUMENT a lot more
  probably.
* Make filetype_make_title() not care about GeanyFiletype type and
  return result instead of internally setting ft state.
2014-01-28 15:20:03 -08:00
Frank Lanitz
8449b5f9b1 Minor update of German translation 2014-01-26 22:31:51 +01:00
Colomban Wendling
d40932ce4d C++: mitigate matching error on generics containing an expression
Mitigate parse error with generics like `foo<X<Y> x;` by avoiding
matching past a semicolon (";") or open curly brace ("{"), which
can't be part of the generic.  This isn't a proper fix, but mitigates
the impact of such constructs.
2014-01-23 14:17:43 +01:00
elextr
f227076dc4 Improve Asciidoc title parsing
1) Prevent parsing titles inside delimited blocks
2) Always detect -- lines as open block delimiters not titles
3) Support single line titles
2014-01-23 21:07:37 +11:00
Colomban Wendling
c2dcec7107 Don't use G_LIKELY() in macros commonly used in g_return_if_fail()
g_return_if_fail() puts itself its condition in a G_LIKELY() clause,
and nested G_LIKELY() lead to warnings about shadowed variables, as
well as not being of any use.

Also, hiding G_LIKELY() in a macro may lead to unexpected use of it
which may hint the compiler incorrectly.
2014-01-22 17:38:29 +01:00
Colomban Wendling
7473e4b1d9 Add defensive checks for function receiving a GeanyDocument argument
Always check the passed-in GeanyDocument argument is a valid one, not
to possibly work on an invalid document.
2014-01-22 17:38:29 +01:00
elextr
c4549b1e73 Add new automake products to .gitignore
Newer automake creates .dirstamp and config.h.in~
2014-01-22 09:45:02 +11:00
elextr
5d62030667 Fix "leaks" of geany_run_script (bug 975)
In build_run_cmd() the script was not deleted when any one of
several errors occurred.  The errors are not related to script
contents so it makes no sense to leave the script.

Also fixes failure to delete script if a working dir was set.
2014-01-22 09:15:25 +11:00
Matthew Brush
df4770362f Merge pull request #205 from aphirst/fortran-keywords
Corrections and Amendments to the Fortran "filetype" files
2014-01-20 07:41:53 -08:00
Adam Hirst
05dda6b001 Updated keywords and intrinsic functions in accordance with the Fortran 2008 standard. 2014-01-20 15:21:36 +00:00
Adam Hirst
10ac2816af Removed years-old typo from the keyword list. 2014-01-20 15:20:12 +00:00
Colomban Wendling
7c6f48e4f5 Workaround a slowness in multi-column combo boxes under GTK3
Always set the combo boxes' wrap-width after their models are fully
filled to work around dramatic slowness described in GTK bug
https://bugzilla.gnome.org/show_bug.cgi?id=722388
2014-01-18 03:13:05 +01:00
Colomban Wendling
5975931be8 Add a section on how to add a test for a parser in HACKING 2014-01-14 22:26:54 +01:00
Colomban Wendling
7205b83abf Update NEWS for Rust filetype 2014-01-14 21:14:37 +01:00
Colomban Wendling
e549562792 Merge branch 'SiegeLord/rust'
Closes PR#181.
2014-01-14 21:09:10 +01:00
SiegeLord
416c3daecc Clean up Rust ctag tests and make them more comprehensive 2014-01-14 12:50:38 -05:00
Colomban Wendling
370666865b Add Rust tests to the makefile 2014-01-14 12:50:38 -05:00
dobkeratops
09cb24c7c7 Add Rust ctag tests 2014-01-14 12:50:38 -05:00
SiegeLord
828df0ab5f Add shebang filetype detection for Rust 2014-01-14 12:50:38 -05:00
SiegeLord
3d7ade4e02 Integrate the Rust lexer with the rest of Geany's functionality 2014-01-14 12:50:38 -05:00
SiegeLord
a085573212 Use :: as the context separator for Rust 2014-01-14 12:50:37 -05:00
Colomban Wendling
aa7e938164 Update our Scintilla patch for the addition of Rust lexer 2014-01-14 12:50:37 -05:00
SiegeLord
36537c4dcd Update Rust Scintilla lexer to Scintilla revision 4946:4d9978010c3a 2014-01-14 12:50:37 -05:00
SiegeLord
4d33223c98 Import the Rust lexer from Scintilla 2014-01-14 12:50:37 -05:00
dobkeratops
b17b4be126 Added the Rust filetype 2014-01-14 12:50:37 -05:00
Colomban Wendling
ad59468f3e rust: Don't use fileEOF() as it behaves unexpectedly
fileEOF() actually returns TRUE anywhere after the last newline when
using the file*() API, which includes a last line without newline.
This is an implementation detail which makes this function not usable
with the rest of the file*() API.  fileEOF() should actually probably
be called iFileEOF(), but that's outside the scope of this parser.

However, even if fileEOF() did work properly with fileGetc(), the very
last byte in the input would have been omitted because we actually
read ahead by one byte, which means the actual read reaches EOF one
byte before our "current byte" does.

Checking whether we reached EOF by checking whether our current byte
isn't equal to `EOF` fixes it, and isn't worse since it's actually how
fileEOF() is implemented anyway.
2014-01-14 12:50:37 -05:00
SiegeLord
c84eb2c1c9 Add a Rust ctags generator.
Thanks to Colomban Wendling for reviewing and finding and fixing many issues.
2014-01-14 12:50:15 -05:00
Colomban Wendling
1a5554c41c Add our stock icons manually
Although GtkIconFactory implements GtkBuildable properly and works just
fine, Glade can't handle it and keeps removing it upon save.  So, drop
the automatic setup to a manual one so the UI description is editable
with Glade again, and which also has the small advantage of not
repeating the stock ID strings.
2014-01-10 18:33:04 +01:00
Colomban Wendling
17a7469b68 Avoid a few unnecessary widget lookups 2014-01-09 17:50:30 +01:00
Colomban Wendling
680a556fff Find when activating the find entry in the replace dialog 2014-01-09 17:34:50 +01:00
Sam Lin
ee891e189e Update zh_TW.po
fix typo
2014-01-09 16:21:00 +01:00
Colomban Wendling
dd7c20a194 python: Improve access reporting
See:
* http://www.python.org/dev/peps/pep-0008/#method-names-and-instance-variables
* http://www.python.org/dev/peps/pep-0008/#designing-for-inheritance
2014-01-09 15:50:25 +01:00
Dimitar Zhekov
625c7b829d fix unexisting keys assigned to "Send selection to -> ..." 2014-01-09 15:27:51 +01:00
Colomban Wendling
5412f73d02 python: Don't duplicate the kind names 2014-01-09 02:12:44 +01:00
kuroidoruido
8d5c7fbdc1 Update filetypes.sql
Add loop and replace keywords
2014-01-08 23:54:46 +01:00
Frank Lanitz
99e07cd294 Swedish translation has also been updated for 1.24 2013-12-27 12:00:28 +01:00
Colomban Wendling
a7884ee2f8 JavaScript: fix parsing of files starting with a shebang
Closes #1016.
2013-12-24 19:30:04 +01:00
Colomban Wendling
e13cd014be Fix portability of make rules to build documentation
Support for "$<" automatic variable in non-suffix rules is a GNU Make
extension: don't use it.
2013-12-22 20:47:33 +01:00
Colomban Wendling
4c8d2fb928 Fix handling of --list-documents when no other instance are running
Properly exit when passed --list-documents, even if no other instance
were already running.  This makes this option behave the same in any
case, making it easier to use in e.g. scripts.
2013-12-19 20:45:25 +01:00
Colomban Wendling
3693889c48 Update NEWS 2013-12-17 22:18:28 +01:00
Colomban Wendling
0eec7764af Fix truncation of the data retrieved with --list-documents
Do not truncate the document list to the size of the buffer used for
communication.

Since we now read multiple times, we need to make sure to always send
ETX so a reader don't hang reading the next chunk if the data sent had
exactly the size of the buffer.
2013-12-17 16:17:21 +01:00
Colomban Wendling
c0a233fcc3 Fix a typo in the documentation's markup 2013-12-17 16:09:56 +01:00
Colomban Wendling
f94650b48e Autotools: use the target file as the base rule for building documentation
This allows automatic building of the file when required, and allows
user to request building that specific file.
2013-12-17 16:02:50 +01:00
Colomban Wendling
9a236fb04e Autotools: fix building the documentation in VPATH builds 2013-12-17 15:50:07 +01:00
Colomban Wendling
dec7b939fb Autotools: always put object files in the source file's directory
Enable Automake option "subdir-object" to put all object files next to
their source file rather than in the directory containing the Makefile.

This is quite expected, and will be the future behavior of Automake in
all cases, so enabling it now avoids future unexpected change.
2013-12-17 15:42:34 +01:00