fix: dynamic variable declare in verion 1.0 has {{ suffix }}
This commit is contained in:
parent
fbb1446fa3
commit
9782bcde95
2 changed files with 7 additions and 0 deletions
|
@ -129,6 +129,8 @@ class Annotator(Walk):
|
|||
family.dynamic.variable,
|
||||
family.path,
|
||||
)
|
||||
if family.version == '1.0' and "{{ suffix }}" in path:
|
||||
path = path.replace("{{ suffix }}", "{{ identifier }}")
|
||||
self.objectspace.informations.add(family.path, "dynamic_variable", path)
|
||||
|
||||
def change_modes(self):
|
||||
|
|
|
@ -26,12 +26,16 @@ You should have received a copy of the GNU Lesser General Public License
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
"""
|
||||
|
||||
from sys import version_info
|
||||
|
||||
from pathlib import Path
|
||||
from tiramisu import Config
|
||||
from ruamel.yaml import YAML
|
||||
from .utils import _, load_modules, normalize_family
|
||||
from .convert import RougailConvert
|
||||
|
||||
if version_info.major == 3 and version_info.minor:
|
||||
import rougail.structural_commandline.object_model
|
||||
|
||||
RENAMED = {
|
||||
"dictionaries_dir": "main_dictionaries",
|
||||
|
@ -184,6 +188,7 @@ class FakeRougailConvert(RougailConvert):
|
|||
self.internal_functions = []
|
||||
self.force_optional = False
|
||||
self.plugins = ["structural_commandline"]
|
||||
self.user_datas = []
|
||||
self.add_extra_options = self.add_extra_options
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue