Colomban Wendling
91d0ed2183
Find in Files: start search when pressing return in all field
...
Patch partly from Yosef Or Boczko, thanks. Closes #959 .
2014-08-14 17:12:58 +02:00
Colomban Wendling
328c22eaf6
Update Scintilla to version 3.5.0
2014-08-13 14:07:03 +02:00
Colomban Wendling
521778ad31
Color scheme dialog: scroll to the initially selected item
2014-08-12 20:40:21 +02:00
Colomban Wendling
df964312b2
Remove a global in colorscheme dialog code
2014-08-12 20:38:59 +02:00
Colomban Wendling
8b0990e52a
Fix relative project base path when creating a new project
...
Closes #1062 .
2014-08-12 16:42:50 +02:00
Colomban Wendling
cc1c36d009
project: Sanitize entries_modified scope
2014-08-12 16:42:46 +02:00
Colomban Wendling
87c6cefc19
Remove dead assignment
...
`entries_modified` global is only used by on_name_entry_changed() and
on_entries_changed(), both of which are only ever called from
project_new() scope -- which already initializes this variable.
2014-08-12 16:17:39 +02:00
Colomban Wendling
0b2b647a6d
Remove an unnecessary dynamic allocation
2014-08-12 14:39:53 +02:00
Colomban Wendling
6ed6a99565
about: Don't leak global variables to the program scope
2014-08-12 14:38:48 +02:00
Colomban Wendling
ba8899b09c
Merge branch 'small-dialogs-cleanup'
2014-08-12 14:18:04 +02:00
Colomban Wendling
36a6dd2e2c
dialogs: Don't abuse GObject data
2014-08-11 16:52:26 +02:00
Colomban Wendling
571239e0bf
dialogs: Remove an unnecessary function indirection
...
Having add_input_widgets() didn't really make the code any simpler,
rather obfuscating it a little.
2014-08-11 16:38:09 +02:00
Colomban Wendling
5fcacf066d
Add user data to GeanyInputCallback, avoiding global variable hacks
2014-08-11 15:44:51 +02:00
Colomban Wendling
5832c4b64c
Merge branch 'prefs-less-globals'
2014-08-10 16:28:56 +02:00
Colomban Wendling
2559cda954
prefs: Remove some global state in keybinding-related code
...
Use gtk_dialog_run() to run the key input dialog, which is modal anyway.
This avoids having to pass the label and the iter around for the dialog
response callback to have them, as they now only are used directly in the
function setting them in the first place.
2014-08-10 15:47:18 +02:00
Colomban Wendling
852f326650
prefs: Pack keybinding-related globals together and avoid much direct access
...
This however doesn't get rid of any of the global data itself, it only pack it
in a struct and passes pointer to this struct around instead of accessing the
global whenever possible.
2014-08-10 15:46:44 +02:00
Colomban Wendling
a8a6ef7d13
Merge branch 'scintilla-update-350-pre'
2014-08-10 02:23:21 +02:00
Colomban Wendling
74ef1b8344
Update for new Scintilla styles
2014-08-10 02:21:54 +02:00
Colomban Wendling
d77fe4c6b7
Update Scintilla to 3.5.0 pre-release
2014-08-10 02:17:32 +02:00
Colomban Wendling
593b9dd2c9
Merge branch 'single-line-regex'
2014-08-10 01:51:48 +02:00
Colomban Wendling
83deafedda
Update the documentation for single-line regular expressions
2014-08-10 01:47:35 +02:00
Colomban Wendling
673c3c36a3
Add UI elements to control single-line regex settings
2014-08-10 01:46:31 +02:00
Colomban Wendling
482d2732af
Add support for single-line regular expressions
2014-08-10 01:46:16 +02:00
Frank Lanitz
604e05cb2d
Adding message to client/log keywords to SQL type
2014-08-07 15:30:54 +02:00
Colomban Wendling
a26bdd628f
Fix crash when closing a document with visible infobars
...
Apparently the ::unrealize symbol is sent too late, after we destroyed
the widget and freed the GeanyDocument, and some signals like
::focus-in-event can still be fired on the widget after that.
So, properly use the ::destroy signal that is supposed to be fired when
others should release references to that instance.
2014-08-07 15:14:22 +02:00
Colomban Wendling
8341228ffa
JavaScript: fix handling of parentheses around an rvalue
...
Properly skip parentheses around an rvalue, and then properly recognize
the surrounded value. This allows to properly recognize e.g. rvalue
`({...})` as an object, or `(function(){})` as a function. As the
implementation is tolerant regarding garbage after the statement,
function expressions called straight away (`(function(){})()`) are
implicitly supported.
This however removes support for the following invalid JavaScript
syntax that was previously supported as a function/method declaration:
var func = () {}
This syntax is not present in the ECMA standard nor is supported by
popular JavaScript engines.
See:
* http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf
section 13, "Function Definition"
* http://ecma262-5.com/ELS5_HTML.htm#Section_13
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope#Defining_functions
2014-08-04 00:23:13 +02:00
Colomban Wendling
35e8fbbe28
JavaScript: fix handling of various missing semicolons in loops
2014-08-03 23:24:33 +02:00
Colomban Wendling
3ff01aeeb3
JavaScript: recognize assignation to a parenthesized expression
2014-08-03 19:07:59 +02:00
Colomban Wendling
b596aa14e8
JavaScript: don't choke when returning object literals
2014-08-03 16:57:26 +02:00
Colomban Wendling
bc9b2fa444
JavaScript: don't choke on array lists
2014-08-03 16:52:11 +02:00
Matthew Brush
3c2d93eca4
Refactor win32 native dialog-mainloop update code
...
Just cleaning up last commit.
2014-08-03 04:23:19 -07:00
Matthew Brush
eb267d30cb
For native win32 dialogs, pump main window loop a bit
...
Mostly gets rid of re-drawing issues, however is not great.
2014-08-02 20:29:02 -07:00
Dominic Hopf
fc0e8fa566
Merge pull request #311 from philippwiesemann/fix-typo-doc
...
Fix typo in documentation
2014-08-02 23:02:21 +02:00
Philipp Wiesemann
c47c84820e
Fix typo in documentation
2014-08-02 22:03:34 +02:00
Nick Treleaven
d4acd1e061
*View->Change Font* should respect native dialog setting (Windows, #1059 )
2014-08-02 16:29:08 +02:00
Colomban Wendling
4cfe71a487
Merge branch 'tm/faster-current-tag'
...
This makes tm_get_current_tag() roughly 4.5 times faster.
2014-08-01 17:34:24 +02:00
Colomban Wendling
257de6597c
fortran: Make sure not to index kinds out of bounds
...
This also makes recent GCC shut up about indexing below the bounds as
it detected the code checked for a negative index yet didn't guard the
actual access. For now GCC doesn't understand the more comprehensive
check, but it might come back if GCC becomes smart enough.
Anyway, this makes the Assert() more correct, and addition of the
explicit kinds array size makes sure any future kind addition won't
miss its entry.
2014-08-01 16:05:09 +02:00
Nick Treleaven
e1988964c1
Fix Windows build
2014-08-01 12:05:30 +01:00
Nick Treleaven
01b3103eaf
Remove unread variable
2014-08-01 11:54:05 +01:00
elextr
c250195b81
Add HTML and XML template extensions
...
Add *.tpl and *.xtpl.
2014-07-30 16:07:50 +10:00
Colomban Wendling
aea113f1c5
Merge pull request #306 from SiegeLord/more_rust_updates
2014-07-29 18:23:11 +02:00
SiegeLord
db977a999d
Rust: Add keyword
2014-07-29 11:27:25 -04:00
SiegeLord
58f0a20bcc
Rust: Update test sources to be valid Rust code.
2014-07-29 11:20:56 -04:00
SiegeLord
d9e569398a
Rust: Add new comment handling test.
2014-07-29 11:14:34 -04:00
SiegeLord
5e469dc5ae
Rust: Update comment parsing.
...
Rust now allows CRLF line endings in source files, which doesn't actually
change any lexing here but the comment was wrong.
Also, the hashbang initial comment has a special case where #![ doesn't count
as a comment (but instead an inner attribute that just happens to be on the
first line).
2014-07-29 11:10:14 -04:00
SiegeLord
cf9385c6d4
Rust: Add test for character literals.
2014-07-29 10:55:15 -04:00
SiegeLord
756344d901
Rust: Parse character literals.
...
These were omitted by mistake. Caused bugs like '"' being interpreted as a
start/end of a string, '}' as the end of a block etc.
2014-07-29 10:51:36 -04:00
SiegeLord
fba9d19ec7
Rust: Add a test for the new string lexer.
2014-07-29 09:34:04 -04:00
SiegeLord
d96a314a68
Rust: Change/simplify how the string tokens are handled.
...
Previously, only the string contents were stored in lexerState::token_str (i.e.
not including the delimeters). Now, the delimeters are stored as well, thus
preserving them. This also simplifies the code a bit.
A new function is added to handle the character storage, which is also now
applied for normal identifiers. To that end, the MAX_STRING_LENGTH was boosted
to 256 so that all reasonably sized identifiers may fit.
2014-07-29 09:23:42 -04:00
Frank Lanitz
c8dab25e6e
Merge pull request #303 from samsulmaarif/master
...
Update Indonesian Translation
2014-07-26 19:08:16 +02:00