Skip to content

Commit d2848ce

Browse files
committed
add SAS to snippet languages
1 parent 7a7a80e commit d2848ce

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

src/CodeSnippetDisplay.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ import {
7474
coconutIcon,
7575
sbtIcon,
7676
rustIcon,
77-
qsharpIcon
77+
qsharpIcon,
78+
sasIcon
7879
} from './CodeSnippetLanguages';
7980

8081
/**
@@ -916,6 +917,18 @@ export class CodeSnippetDisplay extends React.Component<
916917
/>
917918
);
918919
}
920+
case 'SAS': {
921+
return (
922+
<sasIcon.react
923+
tag="span"
924+
height="16px"
925+
width="16px"
926+
right="7px"
927+
top="5px"
928+
margin-right="3px"
929+
/>
930+
);
931+
}
919932
case 'sbt': {
920933
return (
921934
<sbtIcon.react

src/CodeSnippetLanguages.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import purescriptSVGstr from '../style/icon/language_icons/purescript.svg';
3232
import qsharpSVGstr from '../style/icon/language_icons/qsharp.svg';
3333
import rubySVGstr from '../style/icon/language_icons/ruby.svg';
3434
import rustSVGstr from '../style/icon/language_icons/rust.svg';
35+
import sasSVGstr from '../style/icon/language_icons/sas.svg';
3536
import sbtSVGstr from '../style/icon/language_icons/sbt.svg';
3637
import scalaSVGstr from '../style/icon/language_icons/scala.svg';
3738
import schemeSVGstr from '../style/icon/language_icons/scheme.svg';
@@ -95,6 +96,7 @@ export const SUPPORTED_LANGUAGES = [
9596
'Clojurescript',
9697
'sbt',
9798
'Guile',
99+
'SAS',
98100
'Stata',
99101
'Racekt',
100102
'SQL',
@@ -266,6 +268,11 @@ export const nodejsIcon = new LabIcon({
266268
svgstr: nodejsSVGstr
267269
});
268270

271+
export const sasIcon = new LabIcon({
272+
name: 'custom-ui-components:sas',
273+
svgstr: sasSVGstr
274+
});
275+
269276
export const coconutIcon = new LabIcon({
270277
name: 'custom-ui-components:coconut',
271278
svgstr: coconutSVGstr

style/icon/language_icons/sas.svg

Lines changed: 27 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)