This repository was archived by the owner on Jan 20, 2022. It is now read-only.
File tree 5 files changed +9
-6
lines changed
5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import java from "refractor/lang/java";
8
8
import javascript from "refractor/lang/javascript" ;
9
9
import json from "refractor/lang/json" ;
10
10
import markup from "refractor/lang/markup" ;
11
+ import objectivec from "refractor/lang/objectivec" ;
11
12
import perl from "refractor/lang/perl" ;
12
13
import php from "refractor/lang/php" ;
13
14
import python from "refractor/lang/python" ;
@@ -39,6 +40,7 @@ const DEFAULT_LANGUAGE = "javascript";
39
40
javascript ,
40
41
json ,
41
42
markup ,
43
+ objectivec ,
42
44
perl ,
43
45
php ,
44
46
python ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import Extension from "../lib/Extension";
10
10
11
11
const MAX_MATCH = 500 ;
12
12
const OPEN_REGEX = / ^ \/ ( \w + ) ? $ / ;
13
- const CLOSE_REGEX = / ( ^ (? ! \/ ( \w + ) ? ) ( .* ) $ | ^ \/ ( ( \w + ) \s .* | \s ) $ ) / ;
13
+ const CLOSE_REGEX = / ( ^ (? ! \/ ( \w + ) ? ) ( .* ) $ | ^ \/ ( ( [ \w \W ] + ) \s .* | \s ) $ | ^ \/ ( ( \W ) + ) $ ) / ;
14
14
15
15
// based on the input rules code in Prosemirror, here:
16
16
// https://github.com/ProseMirror/prosemirror-inputrules/blob/master/src/inputrules.js
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import Extension from "../lib/Extension";
4
4
import isInCode from "../queries/isInCode" ;
5
5
import { run } from "./BlockMenuTrigger" ;
6
6
7
- const OPEN_REGEX = / (?: ^ | [ ^ a - z A - Z 0 - 9 _ ! # $ % & * @ @ ] ) : ( [ 0 - 9 a - z A - Z _ + - ] + ) ? $ / ;
8
- const CLOSE_REGEX = / (?: ^ | [ ^ a - z A - Z 0 - 9 _ ! # $ % & * @ @ ] ) : ( ( [ 0 - 9 a - z A - Z _ + - ] * \s + ) | ( \s + [ 0 - 9 a - z A - Z _ + - ] + ) | [ ^ 0 - 9 a - z A - Z _ + - ] + ) $ / ;
7
+ const OPEN_REGEX = / (?: ^ | \s ) : ( [ 0 - 9 a - z A - Z _ + - ] + ) ? $ / ;
8
+ const CLOSE_REGEX = / (?: ^ | \s ) : ( ( [ 0 - 9 a - z A - Z _ + - ] * \s + ) | ( \s + [ 0 - 9 a - z A - Z _ + - ] + ) | [ ^ 0 - 9 a - z A - Z _ + - ] + ) $ / ;
9
9
10
10
export default class EmojiTrigger extends Extension {
11
11
get name ( ) {
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export const LANGUAGES = {
13
13
csharp : "C#" ,
14
14
go : "Go" ,
15
15
markup : "HTML" ,
16
+ objectivec : "Objective-C" ,
16
17
java : "Java" ,
17
18
javascript : "JavaScript" ,
18
19
json : "JSON" ,
Original file line number Diff line number Diff line change @@ -10706,9 +10706,9 @@ sshpk@^1.7.0:
10706
10706
tweetnacl "~0.14.0"
10707
10707
10708
10708
ssri@^6.0.1:
10709
- version "6.0.1 "
10710
- resolved "https://registry.yarnpkg.com/ssri/-/ssri-6.0.1 .tgz#2a3c41b28dd45b62b63676ecb74001265ae9edd8 "
10711
- integrity sha512-3Wge10hNcT1Kur4PDFwEieXSCMCJs/7WvSACcrMYrNp+b8kDL1/0wJch5Ni2WrtwEa2IO8OsVfeKIciKCDx/QA ==
10709
+ version "6.0.2 "
10710
+ resolved "https://registry.yarnpkg.com/ssri/-/ssri-6.0.2 .tgz#157939134f20464e7301ddba3e90ffa8f7728ac5 "
10711
+ integrity sha512-cepbSq/neFK7xB6A50KHN0xHDotYzq58wWCa5LeWqnPrHG8GzfEjO/4O8kpmcGW+oaxkvhEJCWgbgNk4/ZV93Q ==
10712
10712
dependencies:
10713
10713
figgy-pudding "^3.5.1"
10714
10714
You can’t perform that action at this time.
0 commit comments