Merge pull request #141 from qwefgh90/main

improve a rule which freeze a page in restructuredText
pull/2748/head
Alexandru Dima 4 years ago committed by GitHub
commit bb5255962a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,6 +6,12 @@
import { testTokenization } from '../test/testRunner';
testTokenization('restructuredtext', [
[
{
line: 'some property = Text::ProxyLibrary::ProxyInterfaceTest::DeleteProxyInterface();',
tokens: [{ startIndex: 0, type: '' }]
}
],
[
{
line: '#####',

@ -54,10 +54,9 @@ export const language = <languages.IMonarchLanguage>{
],
alphanumerics: /[A-Za-z0-9]/,
alphanumericsplus: /[A-Za-z0-9-_+:.]/,
simpleRefNameWithoutBq: /(?:@alphanumerics@alphanumericsplus*@alphanumerics)+|(?:@alphanumerics+)/,
simpleRefName: /(?:`@simpleRefNameWithoutBq`|@simpleRefNameWithoutBq)/,
phrase: /@simpleRefName(?:\s@simpleRefName)*/,
simpleRefNameWithoutBq: /(?:@alphanumerics[-_+:.]*@alphanumerics)+|(?:@alphanumerics+)/,
simpleRefName: /(?:`@phrase`|@simpleRefNameWithoutBq)/,
phrase: /@simpleRefNameWithoutBq(?:\s@simpleRefNameWithoutBq)*/,
citationName: /[A-Za-z][A-Za-z0-9-_.]*/,
blockLiteralStart: /(?:[!"#$%&'()*+,-./:;<=>?@\[\]^_`{|}~]|[\s])/,
precedingChars: /(?:[ -:/'"<([{])/,

Loading…
Cancel
Save