Skip to content

Releases

New function keywords

Choose a tag to compare

@daniel-sali daniel-sali released this 14 Oct 12:20
  • Added missing block keywords: epilogue and perfect_foresight_controlled_paths for 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.

Choose a tag to compare

@daniel-sali daniel-sali released this 19 Dec 13:07
2749057

What's Changed

New Contributors

Full Changelog: v0.2.1...v0.3.0

Preprocessor directive syntax highlight improvements

Choose a tag to compare

@daniel-sali daniel-sali released this 19 Dec 09:48

Added support for whitespace after the @# preprocessor directive.

Full Changelog: v0.2.0...v0.2.1

Improved support for Dynare blocks and string literals

Choose a tag to compare

@daniel-sali daniel-sali released this 18 Dec 13:58

Full Changelog: v0.1.1...v0.2.0

v0.1.1 - Added support for preprocessor tags

Choose a tag to compare

@daniel-sali daniel-sali released this 17 Dec 10:30

Added support for preprocessor tags, updated set of keywords.

Full Changelog: v0.1.0...v0.1.1

Initial release

Choose a tag to compare

@daniel-sali daniel-sali released this 16 Dec 13:48

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.