Commit graph

922 commits

Author SHA1 Message Date
jenkins-bot af7c31d229 Merge "Update pygments to 2.2" 2017-04-27 13:15:46 +00:00
Kunal Mehta db681d158b Update pygments to 2.2
Notable changes:

* Added new token types and lexing for magic methods and variables in
  Python and PHP.
* Added a new token type for heredoc (and similar) string delimiters and
  lexing for them in C++, Perl, PHP, Postgresql and Ruby lexers.
* Improved the CSS lexer.
* Added Varnish config lexer

Full changelog is found at:
<bc45808f83/CHANGES>

Bug: T156573
Change-Id: I4dc1782f19881ba1294308e1cdea1b2e063f438a
2017-04-27 15:10:16 +02:00
Translation updater bot 04a627ff01 Localisation updates from https://translatewiki.net.
Change-Id: I56b19a01f95f053b308c42c8b21456e5c879110c
2017-04-16 10:38:20 +02:00
Reedy fbd45b4ee0 SECURITY: Escape start argument before passing to pygments
Issue identified by Yorick Koster

Bug: T158689
Change-Id: Ib55f7a38edbdd39c9587794d250e22d3b26950be
2017-04-06 14:00:02 -07:00
Reedy 370d8750ac Update symfony/process from ~3.0 to ~3.2
Change-Id: Ibf91f004e69a82161d9e567c539dd532c96df336
Depends-On: I78d1459d7f7e980ac4b6c4a6e57b5d8d6f97f3e6
2017-04-04 20:59:34 +01:00
Translation updater bot 0c6c909432 Localisation updates from https://translatewiki.net.
Change-Id: I48fa490bdf259381f7f62d220173492eac865fb8
2017-03-28 23:00:56 +02:00
Reedy 53dee72878 Fixup some parameter documentation
Remove some return documentation as they don't return (yay hooks)

Wrap a long line

Change-Id: Iefd41c666a25779223fbd7fdb19bf8cf56dd9452
2017-03-28 00:25:36 +01:00
Translation updater bot 23793b7bdd Localisation updates from https://translatewiki.net.
Change-Id: I2f1f072e3d54435b2ed2ac84beabe27aa0e6057e
2017-03-05 22:51:27 +01:00
James D. Forrester afdc03b38d build: Bump stylelint and make pass
grunt-stylelint              0.6.0  →   0.7.0
 stylelint-config-wikimedia   0.3.0  →   0.4.1

Change-Id: Id87b8df04d415e1f1058a4042a31408236402037
2017-02-17 16:25:00 -08:00
Translation updater bot 1380a20c78 Localisation updates from https://translatewiki.net.
Change-Id: I2a607150ce6812f1a5420e46b4da259d323227c2
2017-02-16 23:05:33 +01:00
Antoine Musso 47dfb84689 Fix logic in RL module conditional registration
In 4a6ddad I made it to not load VisualEditor resources whenever
VisualEditor is enabled.  Reverse the logic.

Change-Id: I6297f1c8ada84967416f747dbfc7c56084b05c51
2017-02-13 17:18:44 +01:00
jenkins-bot 4a6ddadf73 Merge "Skip registering RL modules depending on VisualEditor" 2017-02-13 10:53:30 +00:00
Translation updater bot 567aa5ec80 Localisation updates from https://translatewiki.net.
Change-Id: Ic11429555419a2d6dafcfd7ff0fd1050d199a0e7
2017-02-07 23:02:54 +01:00
Umherirrender 570c3be65a Fix key for requires in extension.json
Change-Id: Ic6c8422186a74e926e9b1ac28afe612474e1d0e7
2017-02-05 21:06:42 +01:00
Antoine Musso fea05d6859 Skip registering RL modules depending on VisualEditor
When VisualEditor is not installed, there is no point in registering
resource loader modules that depends on it.

A use case is trying to run tests for the MediaWiki tarball. It comes
with SyntaxHighlight_GeSHi but without VisualEditor.

The patch is based on GuidedTour patch by Matthew Flaschen
https://gerrit.wikimedia.org/r/#/c/305691/ for T143297
A similar one has been done for Cite:
https://gerrit.wikimedia.org/r/#/c/316010/

Change-Id: Idf769e0149f93c099a94b1b7a6cb203273dab881
2017-01-30 14:29:38 +01:00
jenkins-bot 06ab98138f Merge "Update create_pygmentize_bundle for package changes" 2017-01-30 10:50:35 +00:00
jenkins-bot b49d427dc2 Merge "Remove non-existent ipython lexers" 2017-01-30 10:50:34 +00:00
jenkins-bot 4056272d1a Merge "Fix typehints for class constants" 2017-01-30 10:50:33 +00:00
Kunal Mehta 50ce659e51 Update create_pygmentize_bundle for package changes
On <https://pypi.python.org/pypi/Pygments/2.2.0>, the python_version
field is now "py2.py3".

Change-Id: I07e615b4b25a79c0b8dde4d3ce07b54a746ddbd8
2017-01-29 01:38:57 -08:00
Kunal Mehta 4dac7d24f0 Remove non-existent ipython lexers
These lexers don't exist in pygments 2.1, I'm not really sure where they
came from. In any case, these are already broken on wikis since pygments
fails, so let's just remove them.

Change-Id: Icd36fc825c7f40db2d5a5a1b1757f9ab31776c9c
2017-01-29 01:37:54 -08:00
Kunal Mehta f2cfc27eb4 Fix typehints for class constants
Change-Id: I6c65f361a2cb830ed92632ef1e04511a7f2eaf5b
2017-01-23 13:32:32 -08:00
Ed Sanders 2d49b615b1 build: Re-use MessageDirs in banana conf
Change-Id: I7964afcaacc5f0badfc802b362031b3200017f0c
2017-01-23 14:10:18 +00:00
Edward Chernenko 9debf59c9c Workaround for intermittent problems in Symfony/Process under HHVM.
Due to https://github.com/facebook/hhvm/issues/6921, $process->getOutput()
from Symfony/Process doesn't work reliably under HHVM.
This causes the result of "pygmentize" to be unexpectably truncated.

Until this is fixed in HHVM or Symfony, we can use callback of $process->run()
instead of the buggy $process->getOutput().

Bug: T151523
Change-Id: I21ef340eccca0741d7e86840f444272623675c46
2017-01-19 23:09:42 +03:00
Translation updater bot 81be764711 Localisation updates from https://translatewiki.net.
Change-Id: I6405ee15eb262f18c90ac01cb627263c896bce63
2016-12-23 22:33:20 +01:00
Translation updater bot ffd5f3ffde Localisation updates from https://translatewiki.net.
Change-Id: Idbadd17de5badd2b3e1aef953cae33e9d2d8ca67
2016-12-22 22:58:44 +01:00
Translation updater bot 588dd2f290 Localisation updates from https://translatewiki.net.
Change-Id: I4e3c5c33c458a18289667a56cf31688e08d8c489
2016-11-22 23:29:03 +01:00
Ed Sanders d150ddea1c build: Replace jshint/jscs with eslint
Change-Id: I503a57bed2ee6bb648697d6245af0b0286b5f3ec
2016-11-19 13:56:05 +00:00
Ed Sanders 37711ca15c VE: Fix combobox API and other issues
* Combobox is now an input widget so doesn't need .input
* Replace isValid with getValidity.
* Remove 'Show line numbers' from inline mode, as it has
  no effect.
* Remove no-longer required z-index hack.

Bug: T150555
Change-Id: I3c4ac3cb6b174348cc3582469a86fb1a23ca7c51
2016-11-15 17:22:54 +00:00
Translation updater bot 66ace65efd Localisation updates from https://translatewiki.net.
Change-Id: If923b91ce414555467052a733839b84c090c0bb4
2016-11-14 23:01:23 +01:00
Translation updater bot b2bbefad26 Localisation updates from https://translatewiki.net.
Change-Id: I93500a1f7f7d24a831d59e137eb83fa9888de084
2016-11-13 22:54:53 +01:00
James D. Forrester cfbc206cb2 MWSyntaxHighlightWindow: It's ComboBoxInputWidget now
Change-Id: Id18b096103c82eea996c27be5b33b05615e74757
2016-11-09 11:39:12 -08:00
jenkins-bot 9c53853659 Merge "Convert SyntaxHighlight names to Ace names" 2016-10-31 15:47:02 +00:00
Derk-Jan Hartman 50075eaa66 Convert SyntaxHighlight names to Ace names
Provide a translation from Syntaxhighlight compatible Pygments and
GeSHi language names to CodeEditor compatible Ace lexer names

Now when you select php4, the CodeEditor will use the Ace lexer php,
instead of falling back to text mode.

Bug: T148515
Change-Id: Ibc209f97318614f764457726f8d55f4e15276d79
2016-10-31 14:13:36 +01:00
Translation updater bot 6f5e960ad2 Localisation updates from https://translatewiki.net.
Change-Id: I4c067ca3698c139b1a56bb5dfff55c13edd7a2c9
2016-10-28 22:43:13 +02:00
Chad Horohoe 65073ad8a9 Whoops, track not trace
Change-Id: Iba1b8181e2f0d34deaee0cd051f832e58be2f686
2016-10-24 17:03:53 -07:00
Chad Horohoe 685dfe927d Swapping defaultbranch for trace
The former is a maintenance nightmare when branching.

Bug:T146293
Change-Id: Ibc231fadcf505e340f128aa84453805e390ef013
2016-10-24 16:38:34 -07:00
Translation updater bot 36820f33d6 Localisation updates from https://translatewiki.net.
Change-Id: I778b535338fb1a2480213ea9d0697b767e7d04a7
2016-10-04 22:41:32 +02:00
Translation updater bot 41b3de6845 Localisation updates from https://translatewiki.net.
Change-Id: I69a31671e6e4d0f0a87b6ca397d688b65a522e68
2016-10-02 10:42:08 +02:00
jenkins-bot 65de308fdc Merge "VE: Ensure ext.pygments module gets loaded when a user adds a syntax highlight node" 2016-09-20 22:53:50 +00:00
Alex Monk 37ff7c6709 VE: Ensure ext.pygments module gets loaded when a user adds a syntax highlight node
Otherwise it won't get styled unless VE was loaded on a read page with one existing.

Bug: T60388
Change-Id: I32c02eda1e7dca077340c2bf3c15aadad7e3b61a
2016-09-20 22:24:40 +00:00
David Lynch 87736b516e Enable live autocomplete
Bug: T138458
Change-Id: I8440957ebc04267807c55aa4b8b347ede1240021
2016-09-19 11:26:31 -05:00
Translation updater bot 5d7c0037ce Localisation updates from https://translatewiki.net.
Change-Id: Ia8336c3fc2d99b7295a94573a6c0276608bdb969
2016-09-06 22:46:58 +02:00
Translation updater bot 9c18aac2ad Localisation updates from https://translatewiki.net.
Change-Id: Ia1f11cf0b62218ae1b52580b0e4eea3bc4aacc50
2016-09-02 22:57:42 +02:00
Translation updater bot 56134fe3be Localisation updates from https://translatewiki.net.
Change-Id: I0fe6bff9fc4da6e0994a7fa134b2f75bdc763d14
2016-09-01 23:27:41 +02:00
Translation updater bot 7f7f67eabc Localisation updates from https://translatewiki.net.
Change-Id: I5c1056159b2937406c32e13d3597c029c18f453c
2016-08-28 22:42:00 +02:00
Translation updater bot 276e2bb966 Localisation updates from https://translatewiki.net.
Change-Id: I696a957748eb196968741bd08519a571b02e6c11
2016-08-25 22:39:31 +02:00
Translation updater bot 1fca7d954e Localisation updates from https://translatewiki.net.
Change-Id: I7aae3f5a7762d9222828a735a41a537ebc5c3474
2016-08-12 23:15:41 +02:00
James D. Forrester ea982549bc build: Fix stylelint devDependencies
Change-Id: I2f808a911ab88ccc00d20a9bdf172922f2d6ba12
2016-08-05 10:54:50 -07:00
Translation updater bot 164647176f Localisation updates from https://translatewiki.net.
Change-Id: I941c5d4ba212354d2290dac813e052f18d515ece
2016-08-04 23:30:15 +02:00
Chad Horohoe 3a017611da Add missing LICENSE and AUTHORS files
Bug: T138157
Change-Id: I9b1430c983f0ca6fea0bb0354796cffcff0030bb
2016-06-27 11:43:24 -07:00