Skip to content

Commit 7b9aea6

Browse files
authored
Merge pull request #65 from highlightjs/syntax-0813
Syntax updates for Solidity 0.8.13
2 parents 4c39b72 + dd60be1 commit 7b9aea6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/languages/solidity.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ function hljsDefineSolidity(hljs) {
7979
'storage memory calldata ' +
8080
'external public internal payable pure view private returns ' +
8181

82-
'import from as using pragma ' +
82+
'import from as using global pragma ' +
8383
'contract interface library is abstract ' +
8484
'type ' +
8585
'assembly',
@@ -285,7 +285,7 @@ function hljsDefineSolidity(hljs) {
285285
{ // using
286286
beginKeywords: 'using', end: ';',
287287
lexemes: SOL_LEXEMES_RE,
288-
keywords: 'using for',
288+
keywords: 'using for global',
289289
contains: [
290290
SOL_TITLE_MODE,
291291
hljs.C_LINE_COMMENT_MODE,
@@ -314,6 +314,8 @@ function hljsDefineSolidity(hljs) {
314314
contains: [
315315
hljs.C_LINE_COMMENT_MODE,
316316
hljs.C_BLOCK_COMMENT_MODE,
317+
hljs.inherit(SOL_APOS_STRING_MODE, { className: 'meta-string' }), //going to count "memory-safe" etc as meta-strings
318+
hljs.inherit(SOL_QUOTE_STRING_MODE, { className: 'meta-string' }),
317319
hljs.inherit(SOL_ASSEMBLY_ENVIRONMENT, { //the actual *block* in the assembly section
318320
begin: '{', end: '}',
319321
endsParent: true,

0 commit comments

Comments
 (0)