Branch: refs/heads/master
Author: Jiří Techet <techet(a)gmail.com>
Committer: Jiří Techet <techet(a)gmail.com>
Date: Thu, 25 Jun 2015 20:10:32 UTC
Commit: 6781ab30c54efdb29d41e45bc20cc2eec0124f66
https://github.com/geany/geany/commit/6781ab30c54efdb29d41e45bc20cc2eec0124…
Log Message:
-----------
python: optimize skipEverything()
Most of the time there's no start of a string which means all the 10
strcmp()s are done for every character of the input. This is very expensive:
before this patch this function alone takes 55% of the parser time.
When comparing by character (and avoiding further comparison if the first
character doesn't match), this function takes only 11% of the parser time
so the performance of the parser nearly doubles.
In addition check for the "rb" prefix which is possible in Python 3.
Ported from universal-ctags.
Modified Paths:
--------------
tagmanager/ctags/python.c
Modified: tagmanager/ctags/python.c
33 lines changed, 20 insertions(+), 13 deletions(-)
===================================================================
@@ -244,20 +244,27 @@ static const char *skipEverything (const char *cp)
match = 1;
/* these checks find unicode, binary (Python 3) and raw strings */
- if (!match && (
- !strncasecmp(cp, "u'", 2) || !strncasecmp(cp, "u\"", 2) ||
- !strncasecmp(cp, "r'", 2) || !strncasecmp(cp, "r\"", 2) ||
- !strncasecmp(cp, "b'", 2) || !strncasecmp(cp, "b\"", 2)))
+ if (!match)
{
- match = 1;
- cp += 1;
- }
- if (!match && (
- !strncasecmp(cp, "ur'", 3) || !strncasecmp(cp, "ur\"", 3) ||
- !strncasecmp(cp, "br'", 3) || !strncasecmp(cp, "br\"", 3)))
- {
- match = 1;
- cp += 2;
+ boolean r_first = (*cp == 'r' || *cp == 'R');
+
+ /* "r" | "R" | "u" | "U" | "b" | "B" */
+ if (r_first || *cp == 'u' || *cp == 'U' || *cp == 'b' || *cp == 'B')
+ {
+ unsigned int i = 1;
+
+ /* r_first -> "rb" | "rB" | "Rb" | "RB"
+ !r_first -> "ur" | "UR" | "Ur" | "uR" | "br" | "Br" | "bR" | "BR" */
+ if (( r_first && (cp[i] == 'b' || cp[i] == 'B')) ||
+ (!r_first && (cp[i] == 'r' || cp[i] == 'R')))
+ i++;
+
+ if (cp[i] == '\'' || cp[i] == '"')
+ {
+ match = 1;
+ cp += i;
+ }
+ }
}
if (match)
{
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: elextr <elextr(a)gmail.com>
Committer: elextr <elextr(a)gmail.com>
Date: Wed, 24 Jun 2015 19:56:43 UTC
Commit: 54eff298bdff43bf86c40fb12210e2a761abeca6
https://github.com/geany/geany/commit/54eff298bdff43bf86c40fb12210e2a761abe…
Log Message:
-----------
Fix Manual for Build Menu Keybindings
Only fixed items can have keybindings but this manual entry was missed when one execute item was changed from fixed to optional.
Modified Paths:
--------------
doc/geany.txt
Modified: doc/geany.txt
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -3211,7 +3211,7 @@ Build menu keyboard shortcuts
`````````````````````````````
Keyboard shortcuts can be defined for the first two filetype menu items, the first three
-independent menu items, the first two execute menu items and the fixed menu items.
+independent menu items, the first execute menu item and the fixed menu items.
In the keybindings configuration dialog (see `Keybinding preferences`_)
these items are identified by the default labels shown in the `Build Menu`_ section above.
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Colomban Wendling <ban(a)herbesfolles.org>
Committer: Colomban Wendling <ban(a)herbesfolles.org>
Date: Mon, 22 Jun 2015 22:04:19 UTC
Commit: 09cd9b4d30fc92ccc0d966ee314f424a34fa3171
https://github.com/geany/geany/commit/09cd9b4d30fc92ccc0d966ee314f424a34fa3…
Log Message:
-----------
Small update of the French translation
Modified Paths:
--------------
po/fr.po
Modified: po/fr.po
26 lines changed, 12 insertions(+), 14 deletions(-)
===================================================================
@@ -12,7 +12,7 @@ msgstr ""
"Project-Id-Version: Geany 1.25\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-06-20 11:22+0200\n"
-"PO-Revision-Date: 2015-06-22 15:39+0200\n"
+"PO-Revision-Date: 2015-06-22 23:59+0200\n"
"Last-Translator: Colomban Wendling <ban(a)herbesfolles.org>\n"
"Language-Team: French <geany-i18n(a)uvena.de>\n"
"Language: fr\n"
@@ -2176,14 +2176,14 @@ msgstr "Dossier de base :"
#: ../data/geany.glade.h:463
msgid "File patterns:"
-msgstr "Modèles de fichier :"
+msgstr "Motifs de fichier :"
#: ../data/geany.glade.h:464
msgid ""
"Space separated list of file patterns used for the find in files dialog (e."
"g. *.c *.h)"
msgstr ""
-"Liste de modèles de fichier, séparés par une espace, à utiliser dans le "
+"Liste de motifs de fichier, séparés par une espace, à utiliser dans le "
"dialogue de recherche dans les fichiers (par ex. *.c *.h)"
#: ../data/geany.glade.h:465 ../src/project.c:209
@@ -4179,7 +4179,7 @@ msgstr "Le fichier de projet n'a pas pu être écrit"
#: ../src/project.c:256
#, c-format
msgid "Project \"%s\" created."
-msgstr "Projet « %s » créé."
+msgstr "Projet « %s » créé."
#: ../src/project.c:296 ../src/project.c:328 ../src/project.c:1021
#, c-format
@@ -4404,18 +4404,18 @@ msgid ""
"Project: use file patterns defined in the project settings\n"
"Custom: specify file patterns manually"
msgstr ""
-"Tous : recherche dans tous les fichiers\n"
-"Projet : utilise les modèles de fichier définis dans les propriétés du "
+"Tous : recherche dans tous les fichiers\n"
+"Projet : utilise les motifs de fichier définis dans les propriétés du "
"projet\n"
-"Personnalisé : utilise les modèles de fichiers spécifiés manuellement"
+"Personnalisé : utilise les motifs de fichiers spécifiés manuellement"
#: ../src/search.c:895
msgid "Fi_les:"
-msgstr "Fi_chiers"
+msgstr "Fi_chiers :"
#: ../src/search.c:907
msgid "File patterns, e.g. *.c *.h"
-msgstr "Modèles de fichier, par ex. *.c *.h"
+msgstr "Motifs de fichier, par ex. *.c *.h"
#: ../src/search.c:919
msgid "_Directory:"
@@ -5737,7 +5737,7 @@ msgid ""
"Filter your files with the usual wildcards. Separate multiple patterns with "
"a space."
msgstr ""
-"Filtre vos fichiers avec vos jokers habituels. Séparez chaque modèle par une "
+"Filtre vos fichiers avec vos jokers habituels. Séparez chaque motif par une "
"espace."
#: ../plugins/filebrowser.c:1164
@@ -5795,9 +5795,7 @@ msgstr "Actions d'enregistrement"
#: ../plugins/saveactions.c:43
msgid "This plugin provides different actions related to saving of files."
-msgstr ""
-"Ce plugin fournit différentes actions relatives à l'enregistrement des "
-"fichiers."
+msgstr "Fournit différentes actions relatives à l'enregistrement des fichiers."
#: ../plugins/saveactions.c:175
#, c-format
@@ -5900,7 +5898,7 @@ msgstr "Diviser la fenêtre"
#: ../plugins/splitwindow.c:34
msgid "Splits the editor view into two windows."
-msgstr "Diviser en deux la fenêtre d'édition"
+msgstr "Diviser la fenêtre d'édition en deux"
#: ../plugins/splitwindow.c:272
msgid "Show the current document"
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
Branch: refs/heads/master
Author: Frank Lanitz <frank(a)frank.uvena.de>
Committer: Frank Lanitz <frank(a)frank.uvena.de>
Date: Mon, 22 Jun 2015 21:14:02 UTC
Commit: 15f012c2bf32f9b700c0e7eb9ef7f1def6229fa3
https://github.com/geany/geany/commit/15f012c2bf32f9b700c0e7eb9ef7f1def6229…
Log Message:
-----------
Update of Portuguese translation
Modified Paths:
--------------
po/pt.po
Modified: po/pt.po
76 lines changed, 40 insertions(+), 36 deletions(-)
===================================================================
@@ -4,22 +4,23 @@
# This file is distributed under the same license as the geany package.
#
# André Glória <gloria_dot_andre_at_gmail_dot_com> 2009 - 2014
-# Pedro Albuquerque <palbuquerque73(a)gmail.com>
+# Pedro Albuquerque <palbuquerque73(a)openmailbox.com>, 2015.
+#
msgid ""
msgstr ""
"Project-Id-Version: Geany 1.25\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2015-06-20 11:22+0200\n"
-"PO-Revision-Date: 2015-04-11 15:11+0100\n"
-"Last-Translator: Pedro Albuquerque <palbuquerque73(a)gmail.com>\n"
-"Language-Team: Pedro Albuquerque <palbuquerque73(a)gmail.com>\n"
+"POT-Creation-Date: 2015-06-22 02:36+0000\n"
+"PO-Revision-Date: 2015-06-22 20:22+0100\n"
+"Last-Translator: Pedro Albuquerque <palbuquerque73(a)openmailbox.com>\n"
+"Language-Team: Português <palbuquerque73(a)openmailbox.com>\n"
"Language: pt\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=2; plural=n != 1;\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Launchpad-Export-Date: 2010-03-08 13:33+0000\n"
-"X-Generator: Poedit 1.5.4\n"
+"X-Generator: Gtranslator 2.91.6\n"
#: ../geany.desktop.in.h:1 ../data/geany.glade.h:338
msgid "Geany"
@@ -58,9 +59,8 @@ msgid "Insert _ChangeLog Entry"
msgstr "_Inserir entrada no diário de alterações"
#: ../data/geany.glade.h:7
-#, fuzzy
msgid "Insert _Function Description"
-msgstr "Inserir descrição de _Função"
+msgstr "Inserir descrição da _Função"
#: ../data/geany.glade.h:8
msgid "Insert Mu_ltiline Comment"
@@ -1012,13 +1012,12 @@ msgstr ""
#: ../data/geany.glade.h:206
msgid "Stop scrolling at last line"
-msgstr "Parar deslocamento na última linha"
+msgstr "Parar rolamento na última linha"
#: ../data/geany.glade.h:207
msgid "Whether to stop scrolling one page past the last line of a document"
msgstr ""
-"Se o deslocamento de uma página deve terminar após a última linha do "
-"documento"
+"Se o rolamento de uma página deve terminar após a última linha do documento"
#: ../data/geany.glade.h:208
msgid "<b>Display</b>"
@@ -1503,7 +1502,7 @@ msgstr "Imagem de fundo:"
#: ../data/geany.glade.h:310
msgid "Scrollback lines:"
-msgstr "Linhas de deslocamento:"
+msgstr "Linhas de rolamento:"
#: ../data/geany.glade.h:311
msgid "Shell:"
@@ -1539,21 +1538,20 @@ msgstr ""
#: ../data/geany.glade.h:317
msgid "Scroll on keystroke"
-msgstr "Deslocar ao premir uma tecla"
+msgstr "Rolar ao premir uma tecla"
#: ../data/geany.glade.h:318
msgid "Whether to scroll to the bottom if a key was pressed"
-msgstr "Se se desloca o texto até ao fim caso uma tecla seja premida."
+msgstr "Se se rola o texto até ao fim caso uma tecla seja premida."
#: ../data/geany.glade.h:319
msgid "Scroll on output"
-msgstr "Deslocar na saída"
+msgstr "Rolar na saída"
#: ../data/geany.glade.h:320
msgid "Whether to scroll to the bottom when output is generated"
msgstr ""
-"Se se desloca o texto até ao fim sempre que algum texto é gerado por um "
-"comando"
+"Se se rola o texto até ao fim sempre que algum texto é gerado por um comando"
#: ../data/geany.glade.h:321
msgid "Cursor blinks"
@@ -1625,7 +1623,7 @@ msgstr ""
msgid "<b>Terminal</b>"
msgstr "<b>Terminal</b>"
-#: ../data/geany.glade.h:334 ../src/prefs.c:1619 ../src/vte.c:308
+#: ../data/geany.glade.h:334 ../src/prefs.c:1619 ../src/vte.c:320
msgid "Terminal"
msgstr "Terminal"
@@ -2347,9 +2345,9 @@ msgid "Process failed (%s)"
msgstr "Erro no processo (%s)"
#: ../src/build.c:813
-#, fuzzy, c-format
+#, c-format
msgid "Invalid working directory \"%s\""
-msgstr "Erro ao mudar a pasta de trabalho para \"%s\""
+msgstr "Pasta de trabalho \"%s\" inválida"
#: ../src/build.c:838
#, c-format
@@ -2362,6 +2360,8 @@ msgid ""
"File not executed because the terminal may contain some input (press Ctrl+C "
"or Enter to clear it)."
msgstr ""
+"Ficheiro não executado porque o terminal pode conter dados inseridos (prima "
+"Ctrl+C ou Enter para o limpar)."
#: ../src/build.c:1020
msgid "Compilation failed."
@@ -3297,15 +3297,15 @@ msgstr "_Transpor a linha atual"
#: ../src/keybindings.c:330
msgid "Scroll to current line"
-msgstr "Deslocar até à linha atual"
+msgstr "Rolar até à linha atual"
#: ../src/keybindings.c:332
msgid "Scroll up the view by one line"
-msgstr "Deslocar a vista uma linha para cima"
+msgstr "Rolar a vista uma linha para cima"
#: ../src/keybindings.c:334
msgid "Scroll down the view by one line"
-msgstr "Deslocar a vista uma linha para baixo"
+msgstr "Rolar a vista uma linha para baixo"
#: ../src/keybindings.c:336
msgid "Complete snippet"
@@ -4453,28 +4453,31 @@ msgstr ""
#: ../src/spawn.c:122
#, c-format
msgid "Text was empty (or contained only whitespace)"
-msgstr ""
+msgstr "O texto estava vazio (ou só continha espaços)"
#: ../src/spawn.c:137 ../src/spawn.c:183
#, c-format
msgid "Text ended before matching quote was found for %c. (The text was '%s')"
msgstr ""
+"O texto terminou antes da aspa correspondente a %c ser encontrada (o texto "
+"era \"%s\")."
#: ../src/spawn.c:145 ../src/spawn.c:159
#, c-format
msgid "A quoted Windows program name must be entirely inside the quotes"
msgstr ""
+"Um nome citado de um programa Windows tem de estar inteiramente entre aspas"
#. or SPAWN error?
#: ../src/spawn.c:235
-#, fuzzy, c-format
+#, c-format
msgid "Program '%s' not found"
-msgstr "Comando não encontrado"
+msgstr "Programa \"%s\" não encontrado"
#: ../src/spawn.c:272
-#, fuzzy, c-format
+#, c-format
msgid "TerminateProcess() failed: %s"
-msgstr "Erro no processo (%s)"
+msgstr "Falha no TerminateProcess(): %s"
#: ../src/stash.c:1150
msgid "Name"
@@ -5252,9 +5255,8 @@ msgid "Select File"
msgstr "Selecionar ficheiro"
#: ../src/ui_utils.c:2152
-#, fuzzy
msgid "_Filetype Configuration"
-msgstr "_Recarregar a configuração"
+msgstr "Configuração de tipo de _Ficheiro"
#: ../src/ui_utils.c:2189
msgid "Save All"
@@ -5304,28 +5306,30 @@ msgstr "CR"
msgid "LF"
msgstr "LF"
-#: ../src/vte.c:477
+#: ../src/vte.c:489
#, c-format
msgid "invalid VTE library \"%s\": missing symbol \"%s\""
msgstr "Biblioteca VTE inválida \"%s\": símbolo \"%s\" em falta"
-#: ../src/vte.c:626
+#: ../src/vte.c:638
msgid "_Set Path From Document"
msgstr "Definir camin_Ho a partir do documento"
-#: ../src/vte.c:631
+#: ../src/vte.c:643
msgid "_Restart Terminal"
msgstr "_Reiniciar o terminal"
-#: ../src/vte.c:654
+#: ../src/vte.c:666
msgid "_Input Methods"
msgstr "Métodos de _Inserção"
-#: ../src/vte.c:747
+#: ../src/vte.c:759
msgid ""
"Directory not changed because the terminal may contain some input (press Ctrl"
"+C or Enter to clear it)."
msgstr ""
+"Pasta não alterado porque o terminal pode conter dados inseridos (prima Ctrl"
+"+C ou Enter para o limpar)."
#: ../src/win32.c:208
msgid "Geany project files"
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).