Repository navigation
Releases
Releases · nuvolos-cloud/dynare-model-language
New function keywords
- Added missing block keywords:
epilogueandperfect_foresight_controlled_pathsfor proper block recognition. - Introduced a new function-keywords category. Built-ins are highlighted as support.function.builtin.dynare:
- Mathematical: exp, log, ln, log10, sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, asinh, acosh, atanh, sqrt, cbrt, max, min, abs, sign
- Statistical: normcdf, normpdf, erf, erfc
- Dynare special: steady_state, expectation, var_expectation, pac_expectation
- Note: Greek*letter functions keep the existing keyword.function.dynare class.
- Large update to statement-level keywords (hundreds added from the lexer):
- Core additions: prior_function, posterior_function, epilogue, perfect_foresight_controlled_paths
- Extensive option keywords, including solver, simulation, likelihood, smoother, MCMC (mh_*), particle filters, identification, method-of-moments, BVAR, homotopy, occbin, and linear solver options.
- Block-specific additions: values, scales, cutoff, static_mfs, heterogeneity, surprise, bind/relax/error_bind/error_relax, restriction/component/target/auxname, weights/exogenize/endogenize, etc.
- Data/file and output options: file, dirname, datafile, filename, xls_sheet, xls_range, series, output_file_tag, file_tag, simulation_file_tag.
- Distribution keywords: gamma_pdf, beta_pdf, normal_pdf, inv_gamma_pdf, inv_gamma1_pdf, inv_gamma2_pdf, uniform_pdf, weibull_pdf.
- Time and frequency keywords: monthly, quarterly, qoq, yoy, aoa, freq, initial_year/subperiod, final_year/subperiod.
- Advanced and feature flags: use_dll, block, bytecode, all_values_required, no_static, differentiate_forward_vars, parallel_local_files,
v0.3.0 Allow for macro directives in blocks, additional keywords.
What's Changed
- Allow for macro directives in blocks by @JohannesPfeifer in #1
New Contributors
- @JohannesPfeifer made their first contribution in #1
Full Changelog: v0.2.1...v0.3.0
Preprocessor directive syntax highlight improvements
Added support for whitespace after the @# preprocessor directive.
Full Changelog: v0.2.0...v0.2.1
Improved support for Dynare blocks and string literals
Full Changelog: v0.1.1...v0.2.0
v0.1.1 - Added support for preprocessor tags
Added support for preprocessor tags, updated set of keywords.
Full Changelog: v0.1.0...v0.1.1
Initial release
This is the initial release for the Dynare model syntax highlighting support for VSCode.
The TextMate grammar file was converted from the Dynare preprocessor's src/DynareFlex.ll file.