[DEVELOPMENT ENVIRONMENT]

[NEW] Added $PROJECT, $USER and $DATE macro atoms. These
  are handy if you write your own Code Snippets.

git-svn-id: svn://localhost/gambas/trunk@5952 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Bruce Bruen 2013-11-11 12:01:25 +00:00
parent 8d85b9b227
commit f40b9bf33e

View file

@ -194,6 +194,12 @@ Private Sub Make(Optional iIndent As Integer) As String
sCar = Project.Description
Else If sVar = "$AUTHOR" Or If sVar = "$AUTHORS" Then
sCar = Split(Project.Authors, "\n", "", True).Join(", ")
Else If svar = "$USER" Then
sCar = User.Name
Else If svar = "$DATE" Then
sCar = Format$(Now(), gb.MediumDate)
Else If svar = "$PROJECT" Then
sCar = Project.Name
Else
sCar = sVar
Endif