Skip to content

Commit cf3a39b

Browse files
author
Kosh
committed
initializing repo.
1 parent 8875f45 commit cf3a39b

File tree

526 files changed

+29648
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

526 files changed

+29648
-0
lines changed

.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
.DS_Store
5+
/build
6+
/captures
7+
.externalNativeBuild
8+
/gradle.properties
9+
/.idea/
10+
/app/google-services.json
11+
/app/db/
12+
/app/build/
13+
/app/src/main/res/values/secrets.xml

app/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/build
2+
/google-services.json

app/build.gradle

+118
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'me.tatarka.retrolambda'
3+
apply plugin: "com.neenbedankt.android-apt"
4+
apply plugin: 'com.jakewharton.hugo'
5+
apply plugin: 'com.siimkinks.sqlitemagic'
6+
7+
android {
8+
signingConfigs {
9+
signing {
10+
keyAlias ANDROID_KEY_ALIAS
11+
keyPassword ANDROID_STORE_PASSWORD
12+
storeFile file('StyleMe')
13+
storePassword ANDROID_STORE_PASSWORD
14+
}
15+
}
16+
compileSdkVersion 25
17+
buildToolsVersion "25.0.2"
18+
defaultConfig {
19+
applicationId "com.fastaccess.github"
20+
minSdkVersion 21
21+
targetSdkVersion 25
22+
versionCode 100
23+
versionName "1.0.0"
24+
signingConfig signingConfigs.signing
25+
buildConfigField "String", "GITHUB_CLIENT_ID", "\"${GITHUB_CLIENT_ID}\""
26+
buildConfigField "String", "GITHUB_SECRET", "\"${GITHUB_SECRET}\""
27+
buildConfigField "String", "REDIRECT_URL", "\"${REDIRECT_URL}\""
28+
buildConfigField "String", "REST_URL", '"https://api.github.com/"'
29+
}
30+
buildTypes {
31+
release {
32+
minifyEnabled true
33+
shrinkResources true
34+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
35+
}
36+
}
37+
sourceSets {
38+
main {
39+
res.srcDirs = [
40+
"src/main/res/",
41+
"src/main/res/layouts/main_layouts",
42+
"src/main/res/layouts/row_layouts",
43+
"src/main/res/layouts/other_layouts",
44+
"src/main/res"
45+
]
46+
}
47+
}
48+
49+
lintOptions {
50+
abortOnError false
51+
htmlReport true
52+
xmlReport true
53+
disable 'InvalidPackage'
54+
}
55+
compileOptions {
56+
sourceCompatibility JavaVersion.VERSION_1_8
57+
targetCompatibility JavaVersion.VERSION_1_8
58+
}
59+
60+
configurations {
61+
all*.exclude module: 'annotations'
62+
}
63+
}
64+
65+
retrolambda {
66+
oldJdk System.getenv("JAVA7_HOME")
67+
}
68+
69+
repositories {
70+
maven { url "https://clojars.org/repo/" }
71+
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
72+
maven { url "http://dl.bintray.com/amulyakhare/maven" }
73+
maven { url "https://jitpack.io" }
74+
maven { url "https://s3.amazonaws.com/repo.commonsware.com" }
75+
maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' }
76+
}
77+
78+
dependencies {
79+
ext {
80+
supportVerion = "25.1.1"
81+
firebase = "10.0.1"
82+
thirtyinchVersion = '0.8.0-rc3'
83+
retrofit = '2.1.0'
84+
}
85+
compile fileTree(include: ['*.jar'], dir: 'libs')
86+
compile "com.android.support:appcompat-v7:${supportVerion}"
87+
compile "com.android.support:design:${supportVerion}"
88+
compile "com.android.support:cardview-v7:${supportVerion}"
89+
compile "com.android.support:recyclerview-v7:${supportVerion}"
90+
compile "com.android.support:preference-v14:${supportVerion}"
91+
compile "com.android.support:customtabs:${supportVerion}"
92+
compile "com.google.firebase:firebase-messaging:${firebase}"
93+
compile "com.google.firebase:firebase-analytics:${firebase}"
94+
compile "net.grandcentrix.thirtyinch:thirtyinch:${thirtyinchVersion}"
95+
compile "net.grandcentrix.thirtyinch:thirtyinch-rx:${thirtyinchVersion}"
96+
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
97+
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
98+
compile 'de.hdodenhof:circleimageview:2.1.0'
99+
compile 'com.jakewharton:butterknife:8.4.0'
100+
compile 'org.greenrobot:eventbus:3.0.0'
101+
compile 'frankiesardo:icepick:3.1.0'
102+
compile 'it.sephiroth.android.library.bottomnavigation:bottom-navigation:1.0.7'
103+
compile 'pub.devrel:easypermissions:0.2.1'
104+
compile 'io.reactivex:rxandroid:1.2.1'
105+
compile 'io.reactivex:rxjava:1.2.2'
106+
compile "com.squareup.retrofit2:retrofit:${retrofit}"
107+
compile "com.squareup.retrofit2:converter-gson:${retrofit}"
108+
compile "com.squareup.retrofit2:adapter-rxjava:${retrofit}"
109+
compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'
110+
compile 'com.annimon:stream:1.1.4'
111+
compile 'com.commonsware.cwac:anddown:0.3.0'
112+
provided "org.projectlombok:lombok:1.12.6"
113+
apt "org.projectlombok:lombok:1.12.6"
114+
apt 'frankiesardo:icepick-processor:3.1.0'
115+
apt 'com.jakewharton:butterknife-compiler:8.4.0'
116+
}
117+
118+
apply plugin: "com.google.gms.google-services"

app/proguard-rules.pro

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /Users/Kosh/Library/Android/sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include getPath and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
18+
19+
# Uncomment this to preserve the line number information for
20+
# debugging stack traces.
21+
#-keepattributes SourceFile,LineNumberTable
22+
23+
# If you keep the line number information, uncomment this to
24+
# hide the original source file name.
25+
#-renamesourcefileattribute SourceFile

app/src/main/AndroidManifest.xml

+115
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest package="com.fastaccess"
3+
xmlns:android="http://schemas.android.com/apk/res/android">
4+
5+
<uses-permission android:name="android.permission.INTERNET"/>
6+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
7+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
8+
9+
<application
10+
android:name=".App"
11+
android:allowBackup="false"
12+
android:icon="@mipmap/ic_launcher"
13+
android:label="@string/app_name"
14+
android:roundIcon="@mipmap/ic_launcher_round"
15+
android:supportsRtl="true"
16+
android:theme="@style/AppTheme">
17+
<activity
18+
android:name="com.fastaccess.ui.modules.main.MainView">
19+
<intent-filter>
20+
<action android:name="android.intent.action.MAIN"/>
21+
<category android:name="android.intent.category.LAUNCHER"/>
22+
</intent-filter>
23+
</activity>
24+
25+
<activity
26+
android:name=".ui.modules.login.LoginView"
27+
android:configChanges="keyboard|orientation|screenSize"
28+
android:label="@string/app_name"
29+
android:launchMode="singleTop">
30+
<intent-filter>
31+
<action android:name="android.intent.action.VIEW"/>
32+
33+
<category android:name="android.intent.category.DEFAULT"/>
34+
<category android:name="android.intent.category.BROWSABLE"/>
35+
36+
<data
37+
android:host="fast-for-github.firebaseapp.com"
38+
android:scheme="https"/>
39+
</intent-filter>
40+
</activity>
41+
42+
<activity
43+
android:name=".ui.modules.user.UserPagerView"
44+
android:label="@string/user"/>
45+
46+
<activity
47+
android:name=".ui.modules.repos.RepoPagerView"
48+
android:label="@string/repo"/>
49+
50+
<activity
51+
android:name=".ui.modules.repos.issues.issue.details.IssuePagerView"
52+
android:label="@string/issue"/>
53+
54+
<activity
55+
android:name=".ui.modules.repos.pull_requests.pull_request.details.PullRequestPagerView"
56+
android:label="@string/pull_request"/>
57+
58+
<activity
59+
android:name=".ui.modules.repos.code.commit.details.CommitPagerView"
60+
android:label="@string/commit"/>
61+
62+
<activity
63+
android:name=".ui.modules.code.CodeViewerView"
64+
android:configChanges="keyboard|orientation|screenSize"
65+
android:label="@string/viewer"/>
66+
67+
<activity
68+
android:name=".ui.modules.editor.EditorView"
69+
android:configChanges="keyboard|orientation|screenSize"
70+
android:label="@string/write"/>
71+
72+
<activity
73+
android:name=".ui.modules.gists.create.CreateGistView"
74+
android:configChanges="keyboard|orientation|screenSize"
75+
android:label="@string/create_gist"/>
76+
77+
<activity
78+
android:name=".ui.modules.gists.gist.GistView"
79+
android:label="@string/gist"/>
80+
81+
<activity android:name=".ui.modules.search.SearchView"/>
82+
83+
<activity
84+
android:name=".ui.modules.parser.LinksParserActivity"
85+
android:configChanges="keyboard|orientation|screenSize"
86+
android:excludeFromRecents="true"
87+
android:theme="@android:style/Theme.NoDisplay">
88+
89+
<intent-filter>
90+
<action android:name="android.intent.action.VIEW"/>
91+
92+
<data
93+
android:host="github.com"
94+
android:scheme="http"/>
95+
<data
96+
android:host="github.com"
97+
android:scheme="https"/>
98+
99+
<data
100+
android:host="gist.github.com"
101+
android:scheme="http"/>
102+
<data
103+
android:host="gist.github.com"
104+
android:scheme="https"/>
105+
106+
<data android:pathPattern=".*"/>
107+
108+
<category android:name="android.intent.category.DEFAULT"/>
109+
<category android:name="android.intent.category.BROWSABLE"/>
110+
</intent-filter>
111+
</activity>
112+
113+
</application>
114+
115+
</manifest>
112 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
3+
Copyright (C) 2012 Jeffrey B. Arnold
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
*/
17+
PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],["str",/^\'(?:[^\'\\]|\\[\s\S])*(?:\'|$)/,null,"'"]],[["com",/^#.*/],["kwd",/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![A-Za-z0-9_.])/],["lit",/^0[xX][a-fA-F0-9]+([pP][0-9]+)?[Li]?/],["lit",/^[+-]?([0-9]+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?[Li]?/],["lit",/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|[0-9]+))(?![A-Za-z0-9_.])/],
18+
["pun",/^(?:<<?-|->>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|\*|\+|\^|\/|!|%.*?%|=|~|\$|@|:{1,3}|[\[\](){};,?])/],["pln",/^(?:[A-Za-z]+[A-Za-z0-9_.]*|\.[a-zA-Z_][0-9a-zA-Z\._]*)(?![A-Za-z0-9_.])/],["str",/^`.+`/]]),["r","s","R","S","Splus"]);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
3+
Copyright (C) 2009 Onno Hommes.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
*/
17+
PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\r\n]*/,null,"#"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/,
18+
null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[SE]?BANK\=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[!-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),["apollo","agc","aea"]);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
3+
Copyright (C) 2009 Onno Hommes.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
*/
17+
PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\r\n]*/,null,"#"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/,
18+
null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[SE]?BANK\=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[!-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),["apollo","agc","aea"]);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
3+
Copyright (C) 2009 Onno Hommes.
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
*/
17+
PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\r\n]*/,null,"#"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/,
18+
null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[SE]?BANK\=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[!-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),["apollo","agc","aea"]);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
3+
Copyright (C) 2013 Peter Kofler
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
*/
17+
PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:"(?:[^\\"\r\n]|\\.)*(?:"|$))/,null,'"'],["pln",/^\s+/,null," \r\n\t\u00a0"]],[["com",/^REM[^\r\n]*/,null],["kwd",/^\b(?:AND|CLOSE|CLR|CMD|CONT|DATA|DEF ?FN|DIM|END|FOR|GET|GOSUB|GOTO|IF|INPUT|LET|LIST|LOAD|NEW|NEXT|NOT|ON|OPEN|OR|POKE|PRINT|READ|RESTORE|RETURN|RUN|SAVE|STEP|STOP|SYS|THEN|TO|VERIFY|WAIT)\b/,null],["pln",/^[A-Z][A-Z0-9]?(?:\$|%)?/i,null],["lit",/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+\-]?\d+)?/i,
18+
null,"0123456789"],["pun",/^.[^\s\w\.$%"]*/,null]]),["basic","cbm"]);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
3+
Copyright (C) 2013 Peter Kofler
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
*/
17+
PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:"(?:[^\\"\r\n]|\\.)*(?:"|$))/,null,'"'],["pln",/^\s+/,null," \r\n\t\u00a0"]],[["com",/^REM[^\r\n]*/,null],["kwd",/^\b(?:AND|CLOSE|CLR|CMD|CONT|DATA|DEF ?FN|DIM|END|FOR|GET|GOSUB|GOTO|IF|INPUT|LET|LIST|LOAD|NEW|NEXT|NOT|ON|OPEN|OR|POKE|PRINT|READ|RESTORE|RETURN|RUN|SAVE|STEP|STOP|SYS|THEN|TO|VERIFY|WAIT)\b/,null],["pln",/^[A-Z][A-Z0-9]?(?:\$|%)?/i,null],["lit",/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+\-]?\d+)?/i,
18+
null,"0123456789"],["pun",/^.[^\s\w\.$%"]*/,null]]),["basic","cbm"]);

0 commit comments

Comments
 (0)