Crayon Syntax Highlighter - Version 1.2.2

Version Description

  • Fixed the regex for detecting python docstrings. It's a killer, but it works! (?:(?<!\)""".?(?<!\)""")|(?:(?<!\)'''.?(?<!\)''')|((?<!\)".?(?<!\)")|((?<!\)'.?(?<!\)')

=

Download this release

Release Info

Developer akarmenia
Plugin Icon wp plugin Crayon Syntax Highlighter
Version 1.2.2
Comparing to
See all releases

Code changes from version 1.2.1 to 1.2.2

Files changed (3) hide show
  1. crayon_wp.class.php +1 -1
  2. langs/python/python.txt +4 -2
  3. readme.txt +5 -1
crayon_wp.class.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Crayon Syntax Highlighter
4
  Plugin URI: http://ak.net84.net/
5
  Description: Supports multiple languages, themes, highlighting from a URL, local file or post text. <a href="options-general.php?page=crayon_settings">View Settings.</a>
6
- Version: 1.2.1
7
  Author: Aram Kocharyan
8
  Author URI: http://ak.net84.net/
9
  License: GPL2
3
  Plugin Name: Crayon Syntax Highlighter
4
  Plugin URI: http://ak.net84.net/
5
  Description: Supports multiple languages, themes, highlighting from a URL, local file or post text. <a href="options-general.php?page=crayon_settings">View Settings.</a>
6
+ Version: 1.2.2
7
  Author: Aram Kocharyan
8
  Author URI: http://ak.net84.net/
9
  License: GPL2
langs/python/python.txt CHANGED
@@ -5,10 +5,12 @@
5
  CASE_INSENSITIVE = ON
6
 
7
  NAME Python
8
- VERSION 1.0
9
 
10
  COMMENT (#[^\r\n]*)
11
- STRING (?default)
 
 
12
 
13
  FUNCTION:KEYWORD \b(?alt:function.txt)\b
14
  MODULE:KEYWORD \b(?alt:module.txt)\b
5
  CASE_INSENSITIVE = ON
6
 
7
  NAME Python
8
+ VERSION 1.1
9
 
10
  COMMENT (#[^\r\n]*)
11
+ STRING (?:(?<!\\)""".*?(?<!\\)""")|(?:(?<!\\)'''.*?(?<!\\)''')|((?<!\\)".*?(?<!\\)")|((?<!\\)'.*?(?<!\\)')
12
+
13
+ #(?:(?<!\\)("+).*?(?<!\\)\1)|(?:(?<!\\)('+).*?(?<!\\)\2)
14
 
15
  FUNCTION:KEYWORD \b(?alt:function.txt)\b
16
  MODULE:KEYWORD \b(?alt:module.txt)\b
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://ak.net84.net/
4
  Tags: syntax highlighter, syntax, highlighter, highlighting, crayon, code highlighter
5
  Requires at least: 3.0
6
  Tested up to: 3.3
7
- Stable tag: 1.2.1
8
 
9
  Syntax Highlighter supporting multiple languages, themes, highlighting from a URL, local file or post text.
10
 
@@ -81,6 +81,10 @@ Contact me at http://twitter.com/crayonsyntax or crayon.syntax@gmail.com.
81
  * Thanks for the suggestion from travishill:
82
  ** http://wordpress.org/support/topic/plugin-crayon-syntax-highlighter-add-the-ability-to-specify-starting-line-number?replies=2#post-2389518
83
 
 
 
 
 
84
  == Upgrade Notice ==
85
 
86
  No issues upgrading.
4
  Tags: syntax highlighter, syntax, highlighter, highlighting, crayon, code highlighter
5
  Requires at least: 3.0
6
  Tested up to: 3.3
7
+ Stable tag: 1.2.2
8
 
9
  Syntax Highlighter supporting multiple languages, themes, highlighting from a URL, local file or post text.
10
 
81
  * Thanks for the suggestion from travishill:
82
  ** http://wordpress.org/support/topic/plugin-crayon-syntax-highlighter-add-the-ability-to-specify-starting-line-number?replies=2#post-2389518
83
 
84
+ = 1.2.2 =
85
+ * Fixed the regex for detecting python docstrings. It's a killer, but it works!
86
+ (?:(?<!\\)""".*?(?<!\\)""")|(?:(?<!\\)'''.*?(?<!\\)''')|((?<!\\)".*?(?<!\\)")|((?<!\\)'.*?(?<!\\)')
87
+
88
  == Upgrade Notice ==
89
 
90
  No issues upgrading.