-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
146 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
/** | ||
* Highlighter | ||
* | ||
* Copyright (C) 2015, Some right reserved. | ||
* Copyright (C) 2016, Some right reserved. | ||
* | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* | ||
* Contact with author: | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* | ||
* From Kadet with love. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
/** | ||
* Highlighter | ||
* | ||
* Copyright (C) 2015, Some right reserved. | ||
* Copyright (C) 2016, Some right reserved. | ||
* | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* | ||
* Contact with author: | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* | ||
* From Kadet with love. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
/** | ||
* Highlighter | ||
* | ||
* Copyright (C) 2015, Some right reserved. | ||
* Copyright (C) 2016, Some right reserved. | ||
* | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* | ||
* Contact with author: | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* | ||
* From Kadet with love. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
/** | ||
* Highlighter | ||
* | ||
* Copyright (C) 2015, Some right reserved. | ||
* Copyright (C) 2016, Some right reserved. | ||
* | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* | ||
* Contact with author: | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* | ||
* From Kadet with love. | ||
*/ | ||
|
@@ -25,7 +25,6 @@ | |
*/ | ||
class HtmlFormatter implements FormatterInterface | ||
{ | ||
|
||
public function format(Tokens $tokens) | ||
{ | ||
$source = $tokens->getSource(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
/** | ||
* Highlighter | ||
* | ||
* Copyright (C) 2015, Some right reserved. | ||
* Copyright (C) 2016, Some right reserved. | ||
* | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* | ||
* Contact with author: | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* | ||
* From Kadet with love. | ||
*/ | ||
|
@@ -30,7 +30,7 @@ class KeyLighter | |
{ | ||
use Singleton; | ||
|
||
const VERSION = '0.2.0'; | ||
const VERSION = '0.7.0'; | ||
|
||
/** | ||
* Registered aliases | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
/** | ||
* Highlighter | ||
* | ||
* Copyright (C) 2015, Some right reserved. | ||
* Copyright (C) 2016, Some right reserved. | ||
* | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* | ||
* Contact with author: | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* | ||
* From Kadet with love. | ||
*/ | ||
|
@@ -28,7 +28,7 @@ public function setupRules() | |
{ | ||
$this->rules->addMany([ | ||
'comment' => new Rule(new CommentMatcher([';'], [])), | ||
'symbol.section' => new Rule(new RegexMatcher('/(\[[\.\w]+\])/i')), | ||
'symbol.section' => new Rule(new RegexMatcher('/(\[.*?])/i')), | ||
'variable' => new Rule(new RegexMatcher('/([\.\w]+)\s*=/i')), | ||
'number' => new Rule(new RegexMatcher('/(-?\d+)/i')), | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
/** | ||
* Highlighter | ||
* | ||
* Copyright (C) 2015, Some right reserved. | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* Copyright (C) 2016, Some right reserved. | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* | ||
* Contact with author: | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* | ||
* From Kadet with love. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
/** | ||
* Highlighter | ||
* | ||
* Copyright (C) 2015, Some right reserved. | ||
* Copyright (C) 2016, Some right reserved. | ||
* | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* | ||
* Contact with author: | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* | ||
* From Kadet with love. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
/** | ||
* Highlighter | ||
* | ||
* Copyright (C) 2015, Some right reserved. | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* Copyright (C) 2016, Some right reserved. | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* | ||
* Contact with author: | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* | ||
* From Kadet with love. | ||
*/ | ||
|
@@ -69,9 +69,15 @@ public function setupRules() | |
]), | ||
], | ||
|
||
'symbol.namespace' => new Rule(new RegexMatcher('/(\\\{0,2}(?:\w+\\\{1,2})+\w+)/i'), [ | ||
'context' => ['*symbol', '*none'] | ||
]), | ||
'symbol.namespace' => [ | ||
/*new Rule(new RegexMatcher('/(\\\{0,2}(?:\w+\\\{1,2})+)\w+/i'), [ | ||
'context' => ['*symbol', '*none'] | ||
]),*/ | ||
|
||
new Rule(new RegexMatcher('/namespace\s*(\\\{0,2}(?:\w+\\\{1,2})+\w+);/i'), [ | ||
'context' => ['*symbol', '*none'] | ||
]), | ||
], | ||
|
||
'keyword.escape' => new Rule(new RegexMatcher('/(\\\(?:x[0-9a-fA-F]{1,2}|u\{[0-9a-fA-F]{1,6}\}|[0-7]{1,3}|.))/i'), [ | ||
'context' => ['string'] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
/** | ||
* Highlighter | ||
* | ||
* Copyright (C) 2015, Some right reserved. | ||
* Copyright (C) 2016, Some right reserved. | ||
* | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* | ||
* Contact with author: | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* | ||
* From Kadet with love. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
/** | ||
* Highlighter | ||
* | ||
* Copyright (C) 2015, Some right reserved. | ||
* Copyright (C) 2016, Some right reserved. | ||
* | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* | ||
* Contact with author: | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* | ||
* From Kadet with love. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
/** | ||
* Highlighter | ||
*1 | ||
* Copyright (C) 2015, Some right reserved. | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* Copyright (C) 2016, Some right reserved. | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* | ||
* Contact with author: | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* | ||
* From Kadet with love. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
/** | ||
* Highlighter | ||
* | ||
* Copyright (C) 2015, Some right reserved. | ||
* Copyright (C) 2016, Some right reserved. | ||
* | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* | ||
* Contact with author: | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* | ||
* From Kadet with love. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
/** | ||
* Highlighter | ||
* | ||
* Copyright (C) 2015, Some right reserved. | ||
* Copyright (C) 2016, Some right reserved. | ||
* | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* | ||
* Contact with author: | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* | ||
* From Kadet with love. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
/** | ||
* Highlighter | ||
* | ||
* Copyright (C) 2015, Some right reserved. | ||
* Copyright (C) 2016, Some right reserved. | ||
* | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* | ||
* Contact with author: | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* | ||
* From Kadet with love. | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
/** | ||
* Highlighter | ||
*1 | ||
* Copyright (C) 2015, Some right reserved. | ||
* Copyright (C) 2016, Some right reserved. | ||
* | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* @author Kacper "Kadet" Donat <[email protected]> | ||
* | ||
* Contact with author: | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* Xmpp: [email protected] | ||
* E-mail: [email protected] | ||
* | ||
* From Kadet with love. | ||
*/ | ||
|
Oops, something went wrong.