mrgsolve DSL — VSCode Extension
Syntax highlighting for mrgsolve pharmacokinetic/pharmacodynamic model files.
Features
- Block headers:
$PARAM, $ODE, $MAIN, $TABLE, $OMEGA, $SIGMA, etc. (and [block] form)
- Block annotations:
@annotated, @block, @name, @labels, @object, etc.
@annotated blocks: NAME : value : description (unit) format fully highlighted
- Parameter blocks: parameter names highlighted in
$PARAM, $INIT, $FIXED
- Matrix blocks: label and name annotations highlighted in
$OMEGA, $SIGMA, $THETA
$CAPTURE rename syntax: alias = source highlighted
- mrgsolve macros:
ETA(n), EPS(n), THETA(n), A(n), DADT(n)
- ODE syntax:
dxdt_CMT, F_CMT, ALAG_CMT, R_CMT, D_CMT
- System variables:
TIME, ID, AMT, EVID, NEWIND, self, etc.
self methods: self.push(), self.mevent(), etc.
mrg:: namespace: mrg::rvar, mrg::rnorm, etc.
$PLUGIN values: Rcpp, RcppArmadillo, mrgx, nm-vars, tad, etc.
capture keyword
- **C++ keywords, types
File Types
Files with the .mrgsolve or .mrg extension are automatically detected as mrgsolve.
| |