import { Configuration } from "../interface" ; import { getPalette } from "../palette" ; import { getDefaultSyntax } from "./default" ; import { getItalicSyntax } from "./italic" ; export function getSyntax ( configuration , variant ) { const palette = getPalette ( configuration , variant ) ; let syntax ; if ( configuration . italicKeywords === true ) { syntax = getItalicSyntax ( palette , configuration . italicComments ) ; } else { syntax = getDefaultSyntax ( palette , configuration . italicComments ) ; } return syntax ; }