7356 Commits

Author SHA1 Message Date
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
Colomban Wendling
b65f49902f Fix closing the documents when quitting
When quitting we avoid doing some unnecessary actions, and used to
simply destroy the Scintilla widget (and thus the notebook page)
instead of the elaborate UI updates.

Unfortunately, when the infobars landed they changed what is packed as
a notebook page, and now destroying the Scintilla widget alone is not
enough to close the page.  Fix this by properly removing the whole page
no matter what it contains.

This issue was visible when quitting Geany with a project open.
2014-07-26 15:03:49 +02:00
Colomban Wendling
0682a25585 Fix crash when quitting with an infobar visible
When the infobar gets closed/destroyed it tries to focus the possibly
destroyed document, leading to a crash.
2014-07-26 13:36:19 +02:00
Samsul Ma'arif
19e98669f4 Update Indonesian Translation 2014-07-25 03:53:40 +07:00
Colomban Wendling
a87655480f Merge most of PR#298 2014-07-11 18:06:59 +02:00
Frank Lanitz
6768a1b78f Update of Greek translation 2014-07-11 17:06:47 +02:00
Frank Lanitz
81a9026c3b Update of Greek translation 2014-07-08 21:00:34 +02:00
Colomban Wendling
487b8aea0b Custom commands dialog: Make sure the selected item is always visible
Always bring back the selected item after an user action, so the user
can see what she's doing.
2014-07-06 00:06:16 +02:00
Colomban Wendling
47e9e6c000 Ask whether to overwrite the project file when creating a new project 2014-07-04 17:54:07 +02:00
Colomban Wendling
7f7f66978b Add tooltips to explain the purpose of the New Project dialog fields 2014-07-04 17:53:24 +02:00
Colomban Wendling
11b50493fc Use ui_button_new_with_image() to build image buttons 2014-07-04 17:50:37 +02:00
Colomban Wendling
98fa600a2f Update Scintilla to version 3.4.4 2014-07-04 03:06:17 +02:00
Thomas Martitz
db90411b0e main: Refactor quit functions
Move quit-related functions to main.c and make them static. main_quit() now
does all the heavy work and can be called from signal handlers.
2014-07-03 22:33:26 +02:00
Thomas Martitz
ffcec43d01 document.c: Immediately mark as changed when document is externally deleted
Before infobar it didn't matter because the dialog was modal and interaction
with the doc was impossible. Now that you can interact it the doc should
be marked changed immediately.
2014-06-29 11:38:02 +02:00
Thomas Martitz
0f7db113e7 document.c: Restore lost document_set_text_changed(doc, TRUE) call
It got lost by accident in 5117940.
2014-06-29 11:38:02 +02:00
Thomas Martitz
c8970e2331 info bars: Show additional save button for the "reload file?" info bar
This allows overwriting the file right from the info bar.
2014-06-29 11:38:02 +02:00
Thomas Martitz
4b8f42cd9e info bars: Explicitely move focus back to the editor when closing
This does not seem to happen automatically, at least on GTK3.
2014-06-29 11:37:47 +02:00
Thomas Martitz
ab42662309 Fix racy glib assertion failure
Use g_signal_connect_object() to establish automatic and race-free signal
disconnection instead of the hand-crafted mechanism.
2014-06-29 11:29:07 +02:00
danyalzia
0870b8663f Add remaining D keywords 2014-06-28 16:42:53 +01:00
Colomban Wendling
35a212dffc Merge branch 'callbacks-cleanup' 2014-06-27 22:32:38 +02:00
Colomban Wendling
3ce25db632 Remove line number zoom hack as it is no longer necessary
Since cbf9813632d7ee921ffa1fda0d1f69128b2bc755 we have a proper
solution for maintaining line number consistent with the editor zoom,
so drop the old hack.

This also allows to remove the now useless third argument of
sci_set_line_numbers().
2014-06-27 22:23:48 +02:00
Colomban Wendling
cccc6ea0df Remove some dead code 2014-06-26 20:04:15 +02:00
Colomban Wendling
6c80488037 Make sure the current document is still the same after Save All
Save All updates the sidebar and title bar with the document that was
the current one when the action was triggered, but the action could
have changed the focused document if an non-file-backed file required
saving.  So, make sure current document is the same after the action.
2014-06-26 20:00:24 +02:00
Colomban Wendling
0d03fad7bf Move date insert callbacks to the UI code where they belong 2014-06-26 18:36:51 +02:00
Colomban Wendling
a51bc3d654 Move include insert callbacks to the UI code where they belong 2014-06-26 18:36:49 +02:00
Colomban Wendling
00ec175d63 Callbacks: get rid of the ugly insert_callback_from_menu global 2014-06-26 18:28:48 +02:00
Thomas Martitz
721769e682 Fix build warning about missing return value. 2014-06-24 23:07:08 +02:00