andrewheiss / SublimeStataEnhanced

Plugin that adds support for Stata 11–15 for Sublime Text 2 and 3
56 stars 22 forks source link

Local macros/tempvars are not automatically dropped #54

Open anddis opened 7 years ago

anddis commented 7 years ago

Local macros continue to exist after the end of the do-file. (macOS 10.12.6 - Stata MP 14.2 - ST3)

For example: after executing this code

clear all
macro drop _all
set obs 5
tempvar a 
gen `a' = runiform()
su `a'

the temporary variable a is left in the dataset.