mirror of https://github.com/abpframework/abp.git
2364 changed files with 221237 additions and 164087 deletions
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
@ -0,0 +1,26 @@ |
|||
Reset = "\x1b[0m" |
|||
FgRed = "\x1b[31m" |
|||
FgWhite = "\x1b[37m" |
|||
FgWhite = "\x1b[37m" |
|||
Bright = "\x1b[1m" |
|||
FgBlue = "\x1b[34m" |
|||
BgRed = "\x1b[41m" |
|||
|
|||
DEPRECATION = `${BgRed + FgWhite}-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*${Reset} |
|||
${Bright}${FgWhite} |
|||
Verion 9 of Highlight.js has reached EOL. It will no longer |
|||
be supported or receive security updates in the future. |
|||
Please upgrade to version 10 or encourage your indirect |
|||
dependencies to do so. |
|||
|
|||
For more info: |
|||
${FgBlue} |
|||
https://github.com/highlightjs/highlight.js/issues/2877
|
|||
https://github.com/highlightjs/highlight.js/blob/master/VERSION_10_UPGRADE.md
|
|||
${BgRed + FgWhite} |
|||
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*${Reset} |
|||
`.trim()
|
|||
|
|||
if (!process.env["HLJS_HIDE_UPGRADE_WARNING"]) { |
|||
console.log(DEPRECATION) |
|||
} |
|||
@ -1,32 +1,73 @@ |
|||
module.exports = function(hljs) { |
|||
var BUILT_INS = {'builtin-name': 'each in with if else unless bindattr action collection debugger log outlet template unbound view yield'}; |
|||
module.exports = function (hljs) { |
|||
var BUILT_INS = {'builtin-name': 'each in with if else unless bindattr action collection debugger log outlet template unbound view yield lookup'}; |
|||
|
|||
var IDENTIFIER_PLAIN_OR_QUOTED = { |
|||
begin: /".*?"|'.*?'|\[.*?\]|\w+/ |
|||
}; |
|||
|
|||
var EXPRESSION_OR_HELPER_CALL = hljs.inherit(IDENTIFIER_PLAIN_OR_QUOTED, { |
|||
keywords: BUILT_INS, |
|||
starts: { |
|||
// helper params
|
|||
endsWithParent: true, |
|||
relevance: 0, |
|||
contains: [hljs.inherit(IDENTIFIER_PLAIN_OR_QUOTED, {relevance: 0})] |
|||
} |
|||
}); |
|||
|
|||
var BLOCK_MUSTACHE_CONTENTS = hljs.inherit(EXPRESSION_OR_HELPER_CALL, { |
|||
className: 'name' |
|||
}); |
|||
|
|||
var BASIC_MUSTACHE_CONTENTS = hljs.inherit(EXPRESSION_OR_HELPER_CALL, { |
|||
// relevance 0 for backward compatibility concerning auto-detection
|
|||
relevance: 0 |
|||
}); |
|||
|
|||
var ESCAPE_MUSTACHE_WITH_PRECEEDING_BACKSLASH = {begin: /\\\{\{/, skip: true}; |
|||
var PREVENT_ESCAPE_WITH_ANOTHER_PRECEEDING_BACKSLASH = {begin: /\\\\(?=\{\{)/, skip: true}; |
|||
|
|||
return { |
|||
aliases: ['hbs', 'html.hbs', 'html.handlebars'], |
|||
case_insensitive: true, |
|||
subLanguage: 'xml', |
|||
contains: [ |
|||
hljs.COMMENT('{{!(--)?', '(--)?}}'), |
|||
ESCAPE_MUSTACHE_WITH_PRECEEDING_BACKSLASH, |
|||
PREVENT_ESCAPE_WITH_ANOTHER_PRECEEDING_BACKSLASH, |
|||
hljs.COMMENT(/\{\{!--/, /--\}\}/), |
|||
hljs.COMMENT(/\{\{!/, /\}\}/), |
|||
{ |
|||
// open raw block "{{{{raw}}}} content not evaluated {{{{/raw}}}}"
|
|||
className: 'template-tag', |
|||
begin: /\{\{\{\{(?!\/)/, end: /\}\}\}\}/, |
|||
contains: [BLOCK_MUSTACHE_CONTENTS], |
|||
starts: {end: /\{\{\{\{\//, returnEnd: true, subLanguage: 'xml'} |
|||
}, |
|||
{ |
|||
// close raw block
|
|||
className: 'template-tag', |
|||
begin: /\{\{\{\{\//, end: /\}\}\}\}/, |
|||
contains: [BLOCK_MUSTACHE_CONTENTS] |
|||
}, |
|||
{ |
|||
// open block statement
|
|||
className: 'template-tag', |
|||
begin: /\{\{[#\/]/, end: /\}\}/, |
|||
contains: [ |
|||
{ |
|||
className: 'name', |
|||
begin: /[a-zA-Z\.-]+/, |
|||
keywords: BUILT_INS, |
|||
starts: { |
|||
endsWithParent: true, relevance: 0, |
|||
contains: [ |
|||
hljs.QUOTE_STRING_MODE |
|||
] |
|||
} |
|||
} |
|||
] |
|||
contains: [BLOCK_MUSTACHE_CONTENTS], |
|||
}, |
|||
{ |
|||
// template variable or helper-call that is NOT html-escaped
|
|||
className: 'template-variable', |
|||
begin: /\{\{\{/, end: /\}\}\}/, |
|||
keywords: BUILT_INS, |
|||
contains: [BASIC_MUSTACHE_CONTENTS] |
|||
}, |
|||
{ |
|||
// template variable or helper-call that is html-escaped
|
|||
className: 'template-variable', |
|||
begin: /\{\{/, end: /\}\}/, |
|||
keywords: BUILT_INS |
|||
keywords: BUILT_INS, |
|||
contains: [BASIC_MUSTACHE_CONTENTS] |
|||
} |
|||
] |
|||
}; |
|||
|
|||
@ -1,64 +1,75 @@ |
|||
module.exports = function(hljs) { |
|||
var STRING = { |
|||
var NUMBERS = { |
|||
className: 'number', |
|||
relevance: 0, |
|||
variants: [ |
|||
{ begin: /([\+\-]+)?[\d]+_[\d_]+/ }, |
|||
{ begin: hljs.NUMBER_RE } |
|||
] |
|||
}; |
|||
var COMMENTS = hljs.COMMENT(); |
|||
COMMENTS.variants = [ |
|||
{begin: /;/, end: /$/}, |
|||
{begin: /#/, end: /$/}, |
|||
]; |
|||
var VARIABLES = { |
|||
className: 'variable', |
|||
variants: [ |
|||
{ begin: /\$[\w\d"][\w\d_]*/ }, |
|||
{ begin: /\$\{(.*?)}/ } |
|||
] |
|||
}; |
|||
var LITERALS = { |
|||
className: 'literal', |
|||
begin: /\bon|off|true|false|yes|no\b/ |
|||
}; |
|||
var STRINGS = { |
|||
className: "string", |
|||
contains: [hljs.BACKSLASH_ESCAPE], |
|||
variants: [ |
|||
{ |
|||
begin: "'''", end: "'''", |
|||
relevance: 10 |
|||
}, { |
|||
begin: '"""', end: '"""', |
|||
relevance: 10 |
|||
}, { |
|||
begin: '"', end: '"' |
|||
}, { |
|||
begin: "'", end: "'" |
|||
} |
|||
{ begin: "'''", end: "'''", relevance: 10 }, |
|||
{ begin: '"""', end: '"""', relevance: 10 }, |
|||
{ begin: '"', end: '"' }, |
|||
{ begin: "'", end: "'" } |
|||
] |
|||
}; |
|||
var ARRAY = { |
|||
begin: /\[/, end: /\]/, |
|||
contains: [ |
|||
COMMENTS, |
|||
LITERALS, |
|||
VARIABLES, |
|||
STRINGS, |
|||
NUMBERS, |
|||
'self' |
|||
], |
|||
relevance:0 |
|||
}; |
|||
|
|||
return { |
|||
aliases: ['toml'], |
|||
case_insensitive: true, |
|||
illegal: /\S/, |
|||
contains: [ |
|||
hljs.COMMENT(';', '$'), |
|||
hljs.HASH_COMMENT_MODE, |
|||
COMMENTS, |
|||
{ |
|||
className: 'section', |
|||
begin: /^\s*\[+/, end: /\]+/ |
|||
begin: /\[+/, end: /\]+/ |
|||
}, |
|||
{ |
|||
begin: /^[a-z0-9\[\]_-]+\s*=\s*/, end: '$', |
|||
returnBegin: true, |
|||
contains: [ |
|||
{ |
|||
className: 'attr', |
|||
begin: /[a-z0-9\[\]_-]+/ |
|||
}, |
|||
{ |
|||
begin: /=/, endsWithParent: true, |
|||
relevance: 0, |
|||
contains: [ |
|||
{ |
|||
className: 'literal', |
|||
begin: /\bon|off|true|false|yes|no\b/ |
|||
}, |
|||
{ |
|||
className: 'variable', |
|||
variants: [ |
|||
{begin: /\$[\w\d"][\w\d_]*/}, |
|||
{begin: /\$\{(.*?)}/} |
|||
] |
|||
}, |
|||
STRING, |
|||
{ |
|||
className: 'number', |
|||
begin: /([\+\-]+)?[\d]+_[\d_]+/ |
|||
}, |
|||
hljs.NUMBER_MODE |
|||
] |
|||
} |
|||
] |
|||
begin: /^[a-z0-9\[\]_\.-]+(?=\s*=\s*)/, |
|||
className: 'attr', |
|||
starts: { |
|||
end: /$/, |
|||
contains: [ |
|||
COMMENTS, |
|||
ARRAY, |
|||
LITERALS, |
|||
VARIABLES, |
|||
STRINGS, |
|||
NUMBERS |
|||
] |
|||
} |
|||
} |
|||
] |
|||
}; |
|||
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,82 +1,219 @@ |
|||
module.exports = function(hljs) { |
|||
// variable names cannot conflict with block identifiers
|
|||
var BLOCKS = [ |
|||
'functions', |
|||
'model', |
|||
'data', |
|||
'parameters', |
|||
'quantities', |
|||
'transformed', |
|||
'generated' |
|||
]; |
|||
var STATEMENTS = [ |
|||
'for', |
|||
'in', |
|||
'if', |
|||
'else', |
|||
'while', |
|||
'break', |
|||
'continue', |
|||
'return' |
|||
]; |
|||
var SPECIAL_FUNCTIONS = [ |
|||
'print', |
|||
'reject', |
|||
'increment_log_prob|10', |
|||
'integrate_ode|10', |
|||
'integrate_ode_rk45|10', |
|||
'integrate_ode_bdf|10', |
|||
'algebra_solver' |
|||
]; |
|||
var VAR_TYPES = [ |
|||
'int', |
|||
'real', |
|||
'vector', |
|||
'ordered', |
|||
'positive_ordered', |
|||
'simplex', |
|||
'unit_vector', |
|||
'row_vector', |
|||
'matrix', |
|||
'cholesky_factor_corr|10', |
|||
'cholesky_factor_cov|10', |
|||
'corr_matrix|10', |
|||
'cov_matrix|10', |
|||
'void' |
|||
]; |
|||
var FUNCTIONS = [ |
|||
'Phi', 'Phi_approx', 'abs', 'acos', 'acosh', 'algebra_solver', 'append_array', |
|||
'append_col', 'append_row', 'asin', 'asinh', 'atan', 'atan2', 'atanh', |
|||
'bernoulli_cdf', 'bernoulli_lccdf', 'bernoulli_lcdf', 'bernoulli_logit_lpmf', |
|||
'bernoulli_logit_rng', 'bernoulli_lpmf', 'bernoulli_rng', 'bessel_first_kind', |
|||
'bessel_second_kind', 'beta_binomial_cdf', 'beta_binomial_lccdf', |
|||
'beta_binomial_lcdf', 'beta_binomial_lpmf', 'beta_binomial_rng', 'beta_cdf', |
|||
'beta_lccdf', 'beta_lcdf', 'beta_lpdf', 'beta_rng', 'binary_log_loss', |
|||
'binomial_cdf', 'binomial_coefficient_log', 'binomial_lccdf', 'binomial_lcdf', |
|||
'binomial_logit_lpmf', 'binomial_lpmf', 'binomial_rng', 'block', |
|||
'categorical_logit_lpmf', 'categorical_logit_rng', 'categorical_lpmf', |
|||
'categorical_rng', 'cauchy_cdf', 'cauchy_lccdf', 'cauchy_lcdf', 'cauchy_lpdf', |
|||
'cauchy_rng', 'cbrt', 'ceil', 'chi_square_cdf', 'chi_square_lccdf', |
|||
'chi_square_lcdf', 'chi_square_lpdf', 'chi_square_rng', 'cholesky_decompose', |
|||
'choose', 'col', 'cols', 'columns_dot_product', 'columns_dot_self', 'cos', |
|||
'cosh', 'cov_exp_quad', 'crossprod', 'csr_extract_u', 'csr_extract_v', |
|||
'csr_extract_w', 'csr_matrix_times_vector', 'csr_to_dense_matrix', |
|||
'cumulative_sum', 'determinant', 'diag_matrix', 'diag_post_multiply', |
|||
'diag_pre_multiply', 'diagonal', 'digamma', 'dims', 'dirichlet_lpdf', |
|||
'dirichlet_rng', 'distance', 'dot_product', 'dot_self', |
|||
'double_exponential_cdf', 'double_exponential_lccdf', 'double_exponential_lcdf', |
|||
'double_exponential_lpdf', 'double_exponential_rng', 'e', 'eigenvalues_sym', |
|||
'eigenvectors_sym', 'erf', 'erfc', 'exp', 'exp2', 'exp_mod_normal_cdf', |
|||
'exp_mod_normal_lccdf', 'exp_mod_normal_lcdf', 'exp_mod_normal_lpdf', |
|||
'exp_mod_normal_rng', 'expm1', 'exponential_cdf', 'exponential_lccdf', |
|||
'exponential_lcdf', 'exponential_lpdf', 'exponential_rng', 'fabs', |
|||
'falling_factorial', 'fdim', 'floor', 'fma', 'fmax', 'fmin', 'fmod', |
|||
'frechet_cdf', 'frechet_lccdf', 'frechet_lcdf', 'frechet_lpdf', 'frechet_rng', |
|||
'gamma_cdf', 'gamma_lccdf', 'gamma_lcdf', 'gamma_lpdf', 'gamma_p', 'gamma_q', |
|||
'gamma_rng', 'gaussian_dlm_obs_lpdf', 'get_lp', 'gumbel_cdf', 'gumbel_lccdf', |
|||
'gumbel_lcdf', 'gumbel_lpdf', 'gumbel_rng', 'head', 'hypergeometric_lpmf', |
|||
'hypergeometric_rng', 'hypot', 'inc_beta', 'int_step', 'integrate_ode', |
|||
'integrate_ode_bdf', 'integrate_ode_rk45', 'inv', 'inv_Phi', |
|||
'inv_chi_square_cdf', 'inv_chi_square_lccdf', 'inv_chi_square_lcdf', |
|||
'inv_chi_square_lpdf', 'inv_chi_square_rng', 'inv_cloglog', 'inv_gamma_cdf', |
|||
'inv_gamma_lccdf', 'inv_gamma_lcdf', 'inv_gamma_lpdf', 'inv_gamma_rng', |
|||
'inv_logit', 'inv_sqrt', 'inv_square', 'inv_wishart_lpdf', 'inv_wishart_rng', |
|||
'inverse', 'inverse_spd', 'is_inf', 'is_nan', 'lbeta', 'lchoose', 'lgamma', |
|||
'lkj_corr_cholesky_lpdf', 'lkj_corr_cholesky_rng', 'lkj_corr_lpdf', |
|||
'lkj_corr_rng', 'lmgamma', 'lmultiply', 'log', 'log10', 'log1m', 'log1m_exp', |
|||
'log1m_inv_logit', 'log1p', 'log1p_exp', 'log2', 'log_determinant', |
|||
'log_diff_exp', 'log_falling_factorial', 'log_inv_logit', 'log_mix', |
|||
'log_rising_factorial', 'log_softmax', 'log_sum_exp', 'logistic_cdf', |
|||
'logistic_lccdf', 'logistic_lcdf', 'logistic_lpdf', 'logistic_rng', 'logit', |
|||
'lognormal_cdf', 'lognormal_lccdf', 'lognormal_lcdf', 'lognormal_lpdf', |
|||
'lognormal_rng', 'machine_precision', 'matrix_exp', 'max', 'mdivide_left_spd', |
|||
'mdivide_left_tri_low', 'mdivide_right_spd', 'mdivide_right_tri_low', 'mean', |
|||
'min', 'modified_bessel_first_kind', 'modified_bessel_second_kind', |
|||
'multi_gp_cholesky_lpdf', 'multi_gp_lpdf', 'multi_normal_cholesky_lpdf', |
|||
'multi_normal_cholesky_rng', 'multi_normal_lpdf', 'multi_normal_prec_lpdf', |
|||
'multi_normal_rng', 'multi_student_t_lpdf', 'multi_student_t_rng', |
|||
'multinomial_lpmf', 'multinomial_rng', 'multiply_log', |
|||
'multiply_lower_tri_self_transpose', 'neg_binomial_2_cdf', |
|||
'neg_binomial_2_lccdf', 'neg_binomial_2_lcdf', 'neg_binomial_2_log_lpmf', |
|||
'neg_binomial_2_log_rng', 'neg_binomial_2_lpmf', 'neg_binomial_2_rng', |
|||
'neg_binomial_cdf', 'neg_binomial_lccdf', 'neg_binomial_lcdf', |
|||
'neg_binomial_lpmf', 'neg_binomial_rng', 'negative_infinity', 'normal_cdf', |
|||
'normal_lccdf', 'normal_lcdf', 'normal_lpdf', 'normal_rng', 'not_a_number', |
|||
'num_elements', 'ordered_logistic_lpmf', 'ordered_logistic_rng', 'owens_t', |
|||
'pareto_cdf', 'pareto_lccdf', 'pareto_lcdf', 'pareto_lpdf', 'pareto_rng', |
|||
'pareto_type_2_cdf', 'pareto_type_2_lccdf', 'pareto_type_2_lcdf', |
|||
'pareto_type_2_lpdf', 'pareto_type_2_rng', 'pi', 'poisson_cdf', 'poisson_lccdf', |
|||
'poisson_lcdf', 'poisson_log_lpmf', 'poisson_log_rng', 'poisson_lpmf', |
|||
'poisson_rng', 'positive_infinity', 'pow', 'print', 'prod', 'qr_Q', 'qr_R', |
|||
'quad_form', 'quad_form_diag', 'quad_form_sym', 'rank', 'rayleigh_cdf', |
|||
'rayleigh_lccdf', 'rayleigh_lcdf', 'rayleigh_lpdf', 'rayleigh_rng', 'reject', |
|||
'rep_array', 'rep_matrix', 'rep_row_vector', 'rep_vector', 'rising_factorial', |
|||
'round', 'row', 'rows', 'rows_dot_product', 'rows_dot_self', |
|||
'scaled_inv_chi_square_cdf', 'scaled_inv_chi_square_lccdf', |
|||
'scaled_inv_chi_square_lcdf', 'scaled_inv_chi_square_lpdf', |
|||
'scaled_inv_chi_square_rng', 'sd', 'segment', 'sin', 'singular_values', 'sinh', |
|||
'size', 'skew_normal_cdf', 'skew_normal_lccdf', 'skew_normal_lcdf', |
|||
'skew_normal_lpdf', 'skew_normal_rng', 'softmax', 'sort_asc', 'sort_desc', |
|||
'sort_indices_asc', 'sort_indices_desc', 'sqrt', 'sqrt2', 'square', |
|||
'squared_distance', 'step', 'student_t_cdf', 'student_t_lccdf', |
|||
'student_t_lcdf', 'student_t_lpdf', 'student_t_rng', 'sub_col', 'sub_row', |
|||
'sum', 'tail', 'tan', 'tanh', 'target', 'tcrossprod', 'tgamma', 'to_array_1d', |
|||
'to_array_2d', 'to_matrix', 'to_row_vector', 'to_vector', 'trace', |
|||
'trace_gen_quad_form', 'trace_quad_form', 'trigamma', 'trunc', 'uniform_cdf', |
|||
'uniform_lccdf', 'uniform_lcdf', 'uniform_lpdf', 'uniform_rng', 'variance', |
|||
'von_mises_lpdf', 'von_mises_rng', 'weibull_cdf', 'weibull_lccdf', |
|||
'weibull_lcdf', 'weibull_lpdf', 'weibull_rng', 'wiener_lpdf', 'wishart_lpdf', |
|||
'wishart_rng' |
|||
]; |
|||
var DISTRIBUTIONS = [ |
|||
'bernoulli', 'bernoulli_logit', 'beta', 'beta_binomial', 'binomial', |
|||
'binomial_logit', 'categorical', 'categorical_logit', 'cauchy', 'chi_square', |
|||
'dirichlet', 'double_exponential', 'exp_mod_normal', 'exponential', 'frechet', |
|||
'gamma', 'gaussian_dlm_obs', 'gumbel', 'hypergeometric', 'inv_chi_square', |
|||
'inv_gamma', 'inv_wishart', 'lkj_corr', 'lkj_corr_cholesky', 'logistic', |
|||
'lognormal', 'multi_gp', 'multi_gp_cholesky', 'multi_normal', |
|||
'multi_normal_cholesky', 'multi_normal_prec', 'multi_student_t', 'multinomial', |
|||
'neg_binomial', 'neg_binomial_2', 'neg_binomial_2_log', 'normal', |
|||
'ordered_logistic', 'pareto', 'pareto_type_2', 'poisson', 'poisson_log', |
|||
'rayleigh', 'scaled_inv_chi_square', 'skew_normal', 'student_t', 'uniform', |
|||
'von_mises', 'weibull', 'wiener', 'wishart' |
|||
]; |
|||
|
|||
return { |
|||
aliases: ['stanfuncs'], |
|||
keywords: { |
|||
'title': BLOCKS.join(' '), |
|||
'keyword': STATEMENTS.concat(VAR_TYPES).concat(SPECIAL_FUNCTIONS).join(' '), |
|||
'built_in': FUNCTIONS.join(' ') |
|||
}, |
|||
lexemes: hljs.IDENT_RE, |
|||
contains: [ |
|||
hljs.HASH_COMMENT_MODE, |
|||
hljs.C_LINE_COMMENT_MODE, |
|||
hljs.C_BLOCK_COMMENT_MODE, |
|||
hljs.COMMENT( |
|||
/#/, |
|||
/$/, |
|||
{ |
|||
relevance: 0, |
|||
keywords: { |
|||
'meta-keyword': 'include' |
|||
} |
|||
} |
|||
), |
|||
hljs.COMMENT( |
|||
/\/\*/, |
|||
/\*\//, |
|||
{ |
|||
relevance: 0, |
|||
// highlight doc strings mentioned in Stan reference
|
|||
contains: [ |
|||
{ |
|||
className: 'doctag', |
|||
begin: /@(return|param)/ |
|||
} |
|||
] |
|||
} |
|||
), |
|||
{ |
|||
begin: hljs.UNDERSCORE_IDENT_RE, |
|||
lexemes: hljs.UNDERSCORE_IDENT_RE, |
|||
keywords: { |
|||
// Stan's keywords
|
|||
name: |
|||
'for in while repeat until if then else', |
|||
// Stan's probablity distributions (less beta and gamma, as commonly
|
|||
// used for parameter names). So far, _log and _rng variants are not
|
|||
// included
|
|||
symbol: |
|||
'bernoulli bernoulli_logit binomial binomial_logit ' + |
|||
'beta_binomial hypergeometric categorical categorical_logit ' + |
|||
'ordered_logistic neg_binomial neg_binomial_2 ' + |
|||
'neg_binomial_2_log poisson poisson_log multinomial normal ' + |
|||
'exp_mod_normal skew_normal student_t cauchy double_exponential ' + |
|||
'logistic gumbel lognormal chi_square inv_chi_square ' + |
|||
'scaled_inv_chi_square exponential inv_gamma weibull frechet ' + |
|||
'rayleigh wiener pareto pareto_type_2 von_mises uniform ' + |
|||
'multi_normal multi_normal_prec multi_normal_cholesky multi_gp ' + |
|||
'multi_gp_cholesky multi_student_t gaussian_dlm_obs dirichlet ' + |
|||
'lkj_corr lkj_corr_cholesky wishart inv_wishart', |
|||
// Stan's data types
|
|||
'selector-tag': |
|||
'int real vector simplex unit_vector ordered positive_ordered ' + |
|||
'row_vector matrix cholesky_factor_corr cholesky_factor_cov ' + |
|||
'corr_matrix cov_matrix', |
|||
// Stan's model blocks
|
|||
title: |
|||
'functions model data parameters quantities transformed ' + |
|||
'generated', |
|||
literal: |
|||
'true false' |
|||
}, |
|||
relevance: 0 |
|||
}, |
|||
// The below is all taken from the R language definition
|
|||
{ |
|||
// hex value
|
|||
className: 'number', |
|||
begin: "0[xX][0-9a-fA-F]+[Li]?\\b", |
|||
relevance: 0 |
|||
// hack: in range constraints, lower must follow "<"
|
|||
begin: /<\s*lower\s*=/, |
|||
keywords: 'lower' |
|||
}, |
|||
{ |
|||
// hex value
|
|||
className: 'number', |
|||
begin: "0[xX][0-9a-fA-F]+[Li]?\\b", |
|||
relevance: 0 |
|||
// hack: in range constraints, upper must follow either , or <
|
|||
// <lower = ..., upper = ...> or <upper = ...>
|
|||
begin: /[<,]*upper\s*=/, |
|||
keywords: 'upper' |
|||
}, |
|||
{ |
|||
// explicit integer
|
|||
className: 'number', |
|||
begin: "\\d+(?:[eE][+\\-]?\\d*)?L\\b", |
|||
relevance: 0 |
|||
className: 'keyword', |
|||
begin: /\btarget\s*\+=/, |
|||
relevance: 10 |
|||
}, |
|||
{ |
|||
// number with trailing decimal
|
|||
className: 'number', |
|||
begin: "\\d+\\.(?!\\d)(?:i\\b)?", |
|||
relevance: 0 |
|||
begin: '~\\s*(' + hljs.IDENT_RE + ')\\s*\\(', |
|||
keywords: DISTRIBUTIONS.join(' ') |
|||
}, |
|||
{ |
|||
// number
|
|||
className: 'number', |
|||
begin: "\\d+(?:\\.\\d*)?(?:[eE][+\\-]?\\d*)?i?\\b", |
|||
variants: [ |
|||
{ |
|||
begin: /\b\d+(?:\.\d*)?(?:[eE][+-]?\d+)?/ |
|||
}, |
|||
{ |
|||
begin: /\.\d+(?:[eE][+-]?\d+)?\b/ |
|||
} |
|||
], |
|||
relevance: 0 |
|||
}, |
|||
{ |
|||
// number with leading decimal
|
|||
className: 'number', |
|||
begin: "\\.\\d+(?:[eE][+\\-]?\\d*)?i?\\b", |
|||
className: 'string', |
|||
begin: '"', |
|||
end: '"', |
|||
relevance: 0 |
|||
} |
|||
] |
|||
}; |
|||
} |
|||
}; |
|||
File diff suppressed because one or more lines are too long
@ -0,0 +1,99 @@ |
|||
/* a11y-dark theme */ |
|||
/* Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css */ |
|||
/* @author: ericwbailey */ |
|||
|
|||
/* Comment */ |
|||
.hljs-comment, |
|||
.hljs-quote { |
|||
color: #d4d0ab; |
|||
} |
|||
|
|||
/* Red */ |
|||
.hljs-variable, |
|||
.hljs-template-variable, |
|||
.hljs-tag, |
|||
.hljs-name, |
|||
.hljs-selector-id, |
|||
.hljs-selector-class, |
|||
.hljs-regexp, |
|||
.hljs-deletion { |
|||
color: #ffa07a; |
|||
} |
|||
|
|||
/* Orange */ |
|||
.hljs-number, |
|||
.hljs-built_in, |
|||
.hljs-builtin-name, |
|||
.hljs-literal, |
|||
.hljs-type, |
|||
.hljs-params, |
|||
.hljs-meta, |
|||
.hljs-link { |
|||
color: #f5ab35; |
|||
} |
|||
|
|||
/* Yellow */ |
|||
.hljs-attribute { |
|||
color: #ffd700; |
|||
} |
|||
|
|||
/* Green */ |
|||
.hljs-string, |
|||
.hljs-symbol, |
|||
.hljs-bullet, |
|||
.hljs-addition { |
|||
color: #abe338; |
|||
} |
|||
|
|||
/* Blue */ |
|||
.hljs-title, |
|||
.hljs-section { |
|||
color: #00e0e0; |
|||
} |
|||
|
|||
/* Purple */ |
|||
.hljs-keyword, |
|||
.hljs-selector-tag { |
|||
color: #dcc6e0; |
|||
} |
|||
|
|||
.hljs { |
|||
display: block; |
|||
overflow-x: auto; |
|||
background: #2b2b2b; |
|||
color: #f8f8f2; |
|||
padding: 0.5em; |
|||
} |
|||
|
|||
.hljs-emphasis { |
|||
font-style: italic; |
|||
} |
|||
|
|||
.hljs-strong { |
|||
font-weight: bold; |
|||
} |
|||
|
|||
@media screen and (-ms-high-contrast: active) { |
|||
.hljs-addition, |
|||
.hljs-attribute, |
|||
.hljs-built_in, |
|||
.hljs-builtin-name, |
|||
.hljs-bullet, |
|||
.hljs-comment, |
|||
.hljs-link, |
|||
.hljs-literal, |
|||
.hljs-meta, |
|||
.hljs-number, |
|||
.hljs-params, |
|||
.hljs-string, |
|||
.hljs-symbol, |
|||
.hljs-type, |
|||
.hljs-quote { |
|||
color: highlight; |
|||
} |
|||
|
|||
.hljs-keyword, |
|||
.hljs-selector-tag { |
|||
font-weight: bold; |
|||
} |
|||
} |
|||
@ -0,0 +1,99 @@ |
|||
/* a11y-light theme */ |
|||
/* Based on the Tomorrow Night Eighties theme: https://github.com/isagalaev/highlight.js/blob/master/src/styles/tomorrow-night-eighties.css */ |
|||
/* @author: ericwbailey */ |
|||
|
|||
/* Comment */ |
|||
.hljs-comment, |
|||
.hljs-quote { |
|||
color: #696969; |
|||
} |
|||
|
|||
/* Red */ |
|||
.hljs-variable, |
|||
.hljs-template-variable, |
|||
.hljs-tag, |
|||
.hljs-name, |
|||
.hljs-selector-id, |
|||
.hljs-selector-class, |
|||
.hljs-regexp, |
|||
.hljs-deletion { |
|||
color: #d91e18; |
|||
} |
|||
|
|||
/* Orange */ |
|||
.hljs-number, |
|||
.hljs-built_in, |
|||
.hljs-builtin-name, |
|||
.hljs-literal, |
|||
.hljs-type, |
|||
.hljs-params, |
|||
.hljs-meta, |
|||
.hljs-link { |
|||
color: #aa5d00; |
|||
} |
|||
|
|||
/* Yellow */ |
|||
.hljs-attribute { |
|||
color: #aa5d00; |
|||
} |
|||
|
|||
/* Green */ |
|||
.hljs-string, |
|||
.hljs-symbol, |
|||
.hljs-bullet, |
|||
.hljs-addition { |
|||
color: #008000; |
|||
} |
|||
|
|||
/* Blue */ |
|||
.hljs-title, |
|||
.hljs-section { |
|||
color: #007faa; |
|||
} |
|||
|
|||
/* Purple */ |
|||
.hljs-keyword, |
|||
.hljs-selector-tag { |
|||
color: #7928a1; |
|||
} |
|||
|
|||
.hljs { |
|||
display: block; |
|||
overflow-x: auto; |
|||
background: #fefefe; |
|||
color: #545454; |
|||
padding: 0.5em; |
|||
} |
|||
|
|||
.hljs-emphasis { |
|||
font-style: italic; |
|||
} |
|||
|
|||
.hljs-strong { |
|||
font-weight: bold; |
|||
} |
|||
|
|||
@media screen and (-ms-high-contrast: active) { |
|||
.hljs-addition, |
|||
.hljs-attribute, |
|||
.hljs-built_in, |
|||
.hljs-builtin-name, |
|||
.hljs-bullet, |
|||
.hljs-comment, |
|||
.hljs-link, |
|||
.hljs-literal, |
|||
.hljs-meta, |
|||
.hljs-number, |
|||
.hljs-params, |
|||
.hljs-string, |
|||
.hljs-symbol, |
|||
.hljs-type, |
|||
.hljs-quote { |
|||
color: highlight; |
|||
} |
|||
|
|||
.hljs-keyword, |
|||
.hljs-selector-tag { |
|||
font-weight: bold; |
|||
} |
|||
} |
|||
@ -0,0 +1,108 @@ |
|||
/*! |
|||
* Agate by Taufik Nurrohman <https://github.com/taufik-nurrohman> |
|||
* --------------------------------------------------------------- |
|||
* |
|||
* #ade5fc |
|||
* #a2fca2 |
|||
* #c6b4f0 |
|||
* #d36363 |
|||
* #fcc28c |
|||
* #fc9b9b |
|||
* #ffa |
|||
* #fff |
|||
* #333 |
|||
* #62c8f3 |
|||
* #888 |
|||
* |
|||
*/ |
|||
|
|||
.hljs { |
|||
display: block; |
|||
overflow-x: auto; |
|||
padding: 0.5em; |
|||
background: #333; |
|||
color: white; |
|||
} |
|||
|
|||
.hljs-name, |
|||
.hljs-strong { |
|||
font-weight: bold; |
|||
} |
|||
|
|||
.hljs-code, |
|||
.hljs-emphasis { |
|||
font-style: italic; |
|||
} |
|||
|
|||
.hljs-tag { |
|||
color: #62c8f3; |
|||
} |
|||
|
|||
.hljs-variable, |
|||
.hljs-template-variable, |
|||
.hljs-selector-id, |
|||
.hljs-selector-class { |
|||
color: #ade5fc; |
|||
} |
|||
|
|||
.hljs-string, |
|||
.hljs-bullet { |
|||
color: #a2fca2; |
|||
} |
|||
|
|||
.hljs-type, |
|||
.hljs-title, |
|||
.hljs-section, |
|||
.hljs-attribute, |
|||
.hljs-quote, |
|||
.hljs-built_in, |
|||
.hljs-builtin-name { |
|||
color: #ffa; |
|||
} |
|||
|
|||
.hljs-number, |
|||
.hljs-symbol, |
|||
.hljs-bullet { |
|||
color: #d36363; |
|||
} |
|||
|
|||
.hljs-keyword, |
|||
.hljs-selector-tag, |
|||
.hljs-literal { |
|||
color: #fcc28c; |
|||
} |
|||
|
|||
.hljs-comment, |
|||
.hljs-deletion, |
|||
.hljs-code { |
|||
color: #888; |
|||
} |
|||
|
|||
.hljs-regexp, |
|||
.hljs-link { |
|||
color: #c6b4f0; |
|||
} |
|||
|
|||
.hljs-meta { |
|||
color: #fc9b9b; |
|||
} |
|||
|
|||
.hljs-deletion { |
|||
background-color: #fc9b9b; |
|||
color: #333; |
|||
} |
|||
|
|||
.hljs-addition { |
|||
background-color: #a2fca2; |
|||
color: #333; |
|||
} |
|||
|
|||
.hljs a { |
|||
color: inherit; |
|||
} |
|||
|
|||
.hljs a:focus, |
|||
.hljs a:hover { |
|||
color: inherit; |
|||
text-decoration: underline; |
|||
} |
|||
@ -0,0 +1,89 @@ |
|||
/* |
|||
|
|||
An Old Hope – Star Wars Syntax (c) Gustavo Costa <gusbemacbe@gmail.com> |
|||
Original theme - Ocean Dark Theme – by https://github.com/gavsiu |
|||
Based on Jesse Leite's Atom syntax theme 'An Old Hope' – https://github.com/JesseLeite/an-old-hope-syntax-atom |
|||
|
|||
*/ |
|||
|
|||
/* Death Star Comment */ |
|||
.hljs-comment, |
|||
.hljs-quote |
|||
{ |
|||
color: #B6B18B; |
|||
} |
|||
|
|||
/* Darth Vader */ |
|||
.hljs-variable, |
|||
.hljs-template-variable, |
|||
.hljs-tag, |
|||
.hljs-name, |
|||
.hljs-selector-id, |
|||
.hljs-selector-class, |
|||
.hljs-regexp, |
|||
.hljs-deletion |
|||
{ |
|||
color: #EB3C54; |
|||
} |
|||
|
|||
/* Threepio */ |
|||
.hljs-number, |
|||
.hljs-built_in, |
|||
.hljs-builtin-name, |
|||
.hljs-literal, |
|||
.hljs-type, |
|||
.hljs-params, |
|||
.hljs-meta, |
|||
.hljs-link |
|||
{ |
|||
color: #E7CE56; |
|||
} |
|||
|
|||
/* Luke Skywalker */ |
|||
.hljs-attribute |
|||
{ |
|||
color: #EE7C2B; |
|||
} |
|||
|
|||
/* Obi Wan Kenobi */ |
|||
.hljs-string, |
|||
.hljs-symbol, |
|||
.hljs-bullet, |
|||
.hljs-addition |
|||
{ |
|||
color: #4FB4D7; |
|||
} |
|||
|
|||
/* Yoda */ |
|||
.hljs-title, |
|||
.hljs-section |
|||
{ |
|||
color: #78BB65; |
|||
} |
|||
|
|||
/* Mace Windu */ |
|||
.hljs-keyword, |
|||
.hljs-selector-tag |
|||
{ |
|||
color: #B45EA4; |
|||
} |
|||
|
|||
/* Millenium Falcon */ |
|||
.hljs |
|||
{ |
|||
display: block; |
|||
overflow-x: auto; |
|||
background: #1C1D21; |
|||
color: #c0c5ce; |
|||
padding: 0.5em; |
|||
} |
|||
|
|||
.hljs-emphasis |
|||
{ |
|||
font-style: italic; |
|||
} |
|||
|
|||
.hljs-strong |
|||
{ |
|||
font-weight: bold; |
|||
} |
|||
@ -0,0 +1,66 @@ |
|||
/* |
|||
Date: 24 Fev 2015 |
|||
Author: Pedro Oliveira <kanytu@gmail . com> |
|||
*/ |
|||
|
|||
.hljs { |
|||
color: #a9b7c6; |
|||
background: #282b2e; |
|||
display: block; |
|||
overflow-x: auto; |
|||
padding: 0.5em; |
|||
} |
|||
|
|||
.hljs-number, |
|||
.hljs-literal, |
|||
.hljs-symbol, |
|||
.hljs-bullet { |
|||
color: #6897BB; |
|||
} |
|||
|
|||
.hljs-keyword, |
|||
.hljs-selector-tag, |
|||
.hljs-deletion { |
|||
color: #cc7832; |
|||
} |
|||
|
|||
.hljs-variable, |
|||
.hljs-template-variable, |
|||
.hljs-link { |
|||
color: #629755; |
|||
} |
|||
|
|||
.hljs-comment, |
|||
.hljs-quote { |
|||
color: #808080; |
|||
} |
|||
|
|||
.hljs-meta { |
|||
color: #bbb529; |
|||
} |
|||
|
|||
.hljs-string, |
|||
.hljs-attribute, |
|||
.hljs-addition { |
|||
color: #6A8759; |
|||
} |
|||
|
|||
.hljs-section, |
|||
.hljs-title, |
|||
.hljs-type { |
|||
color: #ffc66d; |
|||
} |
|||
|
|||
.hljs-name, |
|||
.hljs-selector-id, |
|||
.hljs-selector-class { |
|||
color: #e8bf6a; |
|||
} |
|||
|
|||
.hljs-emphasis { |
|||
font-style: italic; |
|||
} |
|||
|
|||
.hljs-strong { |
|||
font-weight: bold; |
|||
} |
|||
@ -0,0 +1,87 @@ |
|||
/* |
|||
|
|||
Arduino® Light Theme - Stefania Mellai <s.mellai@arduino.cc> |
|||
|
|||
*/ |
|||
|
|||
.hljs { |
|||
display: block; |
|||
overflow-x: auto; |
|||
padding: 0.5em; |
|||
background: #FFFFFF; |
|||
} |
|||
|
|||
.hljs, |
|||
.hljs-subst { |
|||
color: #434f54; |
|||
} |
|||
|
|||
.hljs-keyword, |
|||
.hljs-attribute, |
|||
.hljs-selector-tag, |
|||
.hljs-doctag, |
|||
.hljs-name { |
|||
color: #00979D; |
|||
} |
|||
|
|||
.hljs-built_in, |
|||
.hljs-literal, |
|||
.hljs-bullet, |
|||
.hljs-code, |
|||
.hljs-addition { |
|||
color: #D35400; |
|||
} |
|||
|
|||
.hljs-regexp, |
|||
.hljs-symbol, |
|||
.hljs-variable, |
|||
.hljs-template-variable, |
|||
.hljs-link, |
|||
.hljs-selector-attr, |
|||
.hljs-selector-pseudo { |
|||
color: #00979D; |
|||
} |
|||
|
|||
.hljs-type, |
|||
.hljs-string, |
|||
.hljs-selector-id, |
|||
.hljs-selector-class, |
|||
.hljs-quote, |
|||
.hljs-template-tag, |
|||
.hljs-deletion { |
|||
color: #005C5F; |
|||
} |
|||
|
|||
.hljs-title, |
|||
.hljs-section { |
|||
color: #880000; |
|||
font-weight: bold; |
|||
} |
|||
|
|||
.hljs-comment { |
|||
color: rgba(149,165,166,.8); |
|||
} |
|||
|
|||
.hljs-meta-keyword { |
|||
color: #728E00; |
|||
} |
|||
|
|||
.hljs-meta { |
|||
color: #434f54; |
|||
} |
|||
|
|||
.hljs-emphasis { |
|||
font-style: italic; |
|||
} |
|||
|
|||
.hljs-strong { |
|||
font-weight: bold; |
|||
} |
|||
|
|||
.hljs-function { |
|||
color: #728E00; |
|||
} |
|||
|
|||
.hljs-number { |
|||
color: #8A7B52; |
|||
} |
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue