adeharo9 / cpp-dotenv

Loads environment variables from .env files for C++ projects.
BSD 3-Clause "New" or "Revised" License
88 stars 21 forks source link

Add support for export keyword #12

Closed adeharo9 closed 4 years ago

adeharo9 commented 4 years ago

Ignore export keyword before variable identifier to be able to source .env file in shells.

adeharo9 commented 4 years ago

Added in antlr branch. Still needs to be tested, but grammar already supports it.

Closing issue meanwhile.

adeharo9 commented 4 years ago

Changed implementation so export word is checked after parsing so it can be used on RHS of a pair without becoming a reserved keyword.