Skip to content

Commit dd60be1

Browse files
committed
Add highlighting for assembly ("memory-safe") & etc
1 parent 7d28ed5 commit dd60be1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/languages/solidity.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)