|
@@ -4,27 +4,6 @@
|
|
|
|
|
|
|
|
|
const syntax = {
|
|
|
- p:{
|
|
|
- paired: true,
|
|
|
- recursive: false,
|
|
|
- startRegexp: /\n\n\s*\S/,
|
|
|
- endRegexp: /\n/,
|
|
|
- content: {
|
|
|
- start: {
|
|
|
- point: 'start',
|
|
|
- offset: 2
|
|
|
- },
|
|
|
- end: {
|
|
|
- point: 'start',
|
|
|
- offset: 0
|
|
|
- }
|
|
|
- },
|
|
|
- begin: 0,
|
|
|
- forward: {
|
|
|
- point: 'end', //start, startEnd, end, endEnd
|
|
|
- offset: 0
|
|
|
- },
|
|
|
- },
|
|
|
img:{
|
|
|
paired: true,
|
|
|
recursive: false,
|
|
@@ -490,7 +469,28 @@ const syntax = {
|
|
|
point: 'end',
|
|
|
offset: 0
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
+ p:{
|
|
|
+ paired: true,
|
|
|
+ recursive: false,
|
|
|
+ startRegexp: /\n\n\s*\S/,
|
|
|
+ endRegexp: /\n/,
|
|
|
+ content: {
|
|
|
+ start: {
|
|
|
+ point: 'start',
|
|
|
+ offset: 2
|
|
|
+ },
|
|
|
+ end: {
|
|
|
+ point: 'start',
|
|
|
+ offset: 0
|
|
|
+ }
|
|
|
+ },
|
|
|
+ begin: 0,
|
|
|
+ forward: {
|
|
|
+ point: 'end', //start, startEnd, end, endEnd
|
|
|
+ offset: 0
|
|
|
+ },
|
|
|
+ },
|
|
|
}
|
|
|
|
|
|
const indentRegexp = (regexp,count) => new RegExp(`\\n([ \\t]${count === undefined ? '*' : `{${count}}` })` + regexp.toString().slice(1,-1))
|