From 43bbeaf72114db31ca7ac3beb5306839629b99d4 Mon Sep 17 00:00:00 2001 From: Chris Poliquin Date: Thu, 14 Sep 2023 18:28:09 -0700 Subject: [PATCH 1/4] Add and fix commands * Add ipolate command for interpolation. * Fix histogram command to include "hist" and "histogram". --- syntax/stata.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/syntax/stata.vim b/syntax/stata.vim index c6ae30d..75711ae 100644 --- a/syntax/stata.vim +++ b/syntax/stata.vim @@ -2,8 +2,8 @@ " Language: Stata and/or Mata " Maintainer: Chris Poliquin " Note: Based on the original by Jeff Pitblado -" Last Change: 2022-04-25 -" Version: 0.6.36 +" Last Change: 2023-09-14 +" Version: 0.6.37 " Preamble {{{ @@ -194,7 +194,7 @@ syn keyword stataCommand gsort syn keyword stataCommand hausman syn keyword stataCommand help syn keyword stataCommand hexdump -syn keyword stataCommand hist +syn keyword stataCommand hist[ogram] syn keyword stataCommand hotelling syn keyword stataCommand icd9[p] syn keyword stataCommand icd10 @@ -205,6 +205,7 @@ syn keyword stataCommand infix syn keyword stataCommand input syn keyword stataCommand insheet syn keyword stataCommand inspect +syn keyword stataCommand ipolate syn keyword stataCommand iqreg syn keyword stataCommand isid syn keyword stataCommand ivreg[ress] From c0a5b75689b60aa4e0d8cf96c33ef95bf90f0dde Mon Sep 17 00:00:00 2001 From: Chris Poliquin Date: Tue, 23 Jan 2024 11:58:08 -0800 Subject: [PATCH 2/4] Add missing commands --- syntax/stata.vim | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/syntax/stata.vim b/syntax/stata.vim index 75711ae..09da216 100644 --- a/syntax/stata.vim +++ b/syntax/stata.vim @@ -2,8 +2,8 @@ " Language: Stata and/or Mata " Maintainer: Chris Poliquin " Note: Based on the original by Jeff Pitblado -" Last Change: 2023-09-14 -" Version: 0.6.37 +" Last Change: 2024-01-23 +" Version: 0.6.38 " Preamble {{{ @@ -125,6 +125,7 @@ syn keyword stataCommand clear syn keyword stataCommand cloglog syn keyword stataCommand codebook syn keyword stataCommand collapse +syn keyword stataCommand collect syn keyword stataCommand corr[elate] syn keyword stataCommand compress syn keyword stataCommand contrast @@ -193,6 +194,10 @@ syn keyword stataCommand graph syn keyword stataCommand gsort syn keyword stataCommand hausman syn keyword stataCommand help +syn keyword stataCommand heckman +syn keyword stataCommand heckoprobit +syn keyword stataCommand heckpoisson +syn keyword stataCommand heckprobit syn keyword stataCommand hexdump syn keyword stataCommand hist[ogram] syn keyword stataCommand hotelling @@ -416,6 +421,7 @@ syn keyword stataCommand xtline syn keyword stataCommand xtlogit syn keyword stataCommand xthtaylor syn keyword stataCommand xtintreg +syn keyword stataCommand xtheckman syn keyword stataCommand xtmelogit syn keyword stataCommand xtmepoisson syn keyword stataCommand xtnbreg @@ -495,6 +501,7 @@ syn keyword stataCommand labvarch syn keyword stataCommand labvalclone syn keyword stataCommand labvalcombine syn keyword stataCommand mdesc +syn keyword stataCommand mipolate syn keyword stataCommand missings syn keyword stataCommand outreg[2] syn keyword stataCommand ppmlhdfe From 10a1282defe8c5f517dfe55c0450653636bcbf77 Mon Sep 17 00:00:00 2001 From: Chris Poliquin Date: Tue, 8 Jul 2025 08:43:25 -0700 Subject: [PATCH 3/4] Add more commands --- syntax/stata.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/syntax/stata.vim b/syntax/stata.vim index 09da216..e02fcf3 100644 --- a/syntax/stata.vim +++ b/syntax/stata.vim @@ -2,8 +2,8 @@ " Language: Stata and/or Mata " Maintainer: Chris Poliquin " Note: Based on the original by Jeff Pitblado -" Last Change: 2024-01-23 -" Version: 0.6.38 +" Last Change: 2025-07-08 +" Version: 0.6.39 " Preamble {{{ @@ -164,6 +164,7 @@ syn keyword stataCommand erase syn keyword stataCommand eret[urn] syn keyword stataCommand err[or] syn keyword stataCommand estadd +syn keyword stataCommand estat syn keyword stataCommand etable syn match stataCommand '\' syn match stataCommand '\' @@ -450,6 +451,8 @@ syn keyword stataCommand zipfile syn keyword stataCommand asdoc syn keyword stataCommand astile syn keyword stataCommand collin +syn keyword stataCommand did2s +syn keyword stataCommand did_imputation syn keyword stataCommand distinct syn keyword stataCommand eglist syn keyword stataCommand estout @@ -486,6 +489,7 @@ syn keyword stataCommand ivreg29 syn keyword stataCommand ivreg210 syn keyword stataCommand ivreghdfe syn keyword stataCommand jarowinkler +syn keyword stataCommand jwdid syn keyword stataCommand keeporder syn keyword stataCommand kountry syn keyword stataCommand labcd From 6b52123239d887b9344831fccdb56c32c96e12f8 Mon Sep 17 00:00:00 2001 From: Chris Poliquin Date: Wed, 10 Dec 2025 10:43:52 -0800 Subject: [PATCH 4/4] Include clonevar command --- syntax/stata.vim | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/syntax/stata.vim b/syntax/stata.vim index e02fcf3..c4d1036 100644 --- a/syntax/stata.vim +++ b/syntax/stata.vim @@ -2,8 +2,8 @@ " Language: Stata and/or Mata " Maintainer: Chris Poliquin " Note: Based on the original by Jeff Pitblado -" Last Change: 2025-07-08 -" Version: 0.6.39 +" Last Change: 2025-12-10 +" Version: 0.6.40 " Preamble {{{ @@ -123,6 +123,7 @@ syn keyword stataCommand class syn keyword stataCommand classutil syn keyword stataCommand clear syn keyword stataCommand cloglog +syn keyword stataCommand clonevar syn keyword stataCommand codebook syn keyword stataCommand collapse syn keyword stataCommand collect @@ -1072,12 +1073,12 @@ syn region stataFunc matchgroup=Function start=/\" display -syn match stataNumber "\<[0-9]\d\+\>" display -syn match stataNumber "\<\d\+[jJ]\>" display -syn match stataFloat "\.\d\+\%([eE][+-]\=\d\+\)\=[jJ]\=\>" display -syn match stataFloat "\<\d\+[eE][+-]\=\d\+[jJ]\=\>" display -syn match stataFloat "\<\d\+\.\d*\%([eE][+-]\=\d\+\)\=[jJ]\=\>" display +syn match stataNumber "\<-\?\d\>" display +syn match stataNumber "\<-\?[0-9]\d\+\>" display +syn match stataNumber "\<-\?\d\+[jJ]\>" display +syn match stataFloat "-\?\.\d\+\%([eE][+-]\=\d\+\)\=[jJ]\=\>" display +syn match stataFloat "\<-\?\d\+[eE][+-]\=\d\+[jJ]\=\>" display +syn match stataFloat "\<-\?\d\+\.\d*\%([eE][+-]\=\d\+\)\=[jJ]\=\>" display syn match stataBinNumber "\<0[bB][01]\+[lL]\=\>" display syn match stataBinNumber "\<0[bB][01]\+\>" display syn match stataHexNumber "\<0[xX]\x\+[lL]\=\>" display