Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
996dd950
Commit
996dd950
authored
Dec 08, 2015
by
chriseth
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #75 from chriseth/keywords
Add some missing keywords.
parents
60b9c5a8
18b3921f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mode-solidity.js
assets/js/mode-solidity.js
+5
-5
No files found.
assets/js/mode-solidity.js
View file @
996dd950
...
...
@@ -61,12 +61,12 @@ var JavaScriptHighlightRules = function(options) {
intTypes
+=
'|bytes'
+
(
width
/
8
)
+
'|uint'
+
width
+
'|int'
+
width
;
var
keywordMapper
=
this
.
createKeywordMapper
({
"variable.language"
:
"this|bool|byte|bytes|bytes0|address|"
+
intTypes
,
"this|bool|
string|
byte|bytes|bytes0|address|"
+
intTypes
,
"keyword"
:
"contract|
constant
|"
+
"contract|
library|constant|event|modifier
|"
+
"struct|mapping|enum|break|continue|delete|else|for|function|"
+
"if|new|return|returns|var|while|"
+
"private|public|external|internal"
,
"if|new|return|returns|var|while|
using|
"
+
"private|public|external|internal
|storage|memory
"
,
"storage.type"
:
"constant|var|function"
,
"constant.language.boolean"
:
"true|false"
...
...
@@ -180,7 +180,7 @@ var JavaScriptHighlightRules = function(options) {
regex
:
identifierRe
},
{
token
:
"keyword.operator"
,
regex
:
/--|
\+\+
|===|==|=|!=|!==|=>|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|
\|\|
|
\?\:
|
[
!$%&*+
\-
~
\/
^
]
=
?
/
,
regex
:
/--|
\
*\*
|
\
+\+
|===|==|=|!=|!==|=>|<=|>=|<<=|>>=|>>>=|<>|<|>|!|&&|
\|\|
|
\?\:
|
[
!$%&*+
\-
~
\/
^
]
=
?
/
,
next
:
"start"
},
{
token
:
"punctuation.operator"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment