Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework of SDC syntax definition for Issue #4 EOL Comments #5

Merged
merged 6 commits into from
Jul 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

*.sublime-project

*.sublime-workspace
44 changes: 0 additions & 44 deletions syntaxes/SDC.YAML-tmLanguage

This file was deleted.

93 changes: 0 additions & 93 deletions syntaxes/SDC.tmLanguage

This file was deleted.

55 changes: 55 additions & 0 deletions syntaxes/Synopsys Design Constraints.sublime-syntax
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
%YAML 1.2
---
name: Synopsys Design Constraints
file_extensions:
- sdc
scope: source.sdc

contexts:
main:
- match: ""
push: "Packages/TCL/Tcl.sublime-syntax"
with_prototype:
- include: standard-parameters
- include: xilinx-parameters-extensions

standard-parameters:
- match: |-
(?xi)\s(\+|\-)(
add|add_delay|asynchronous|capacitance|clock|clock_fall|
decimal_places|divide_by|end|edge_rise|lib_cell|fall|fall_from|
fall_to|from|from_clock|group|hold|include_generated_clock|library|
logically_exclusive|master_clock|max|min|multiply_by|name|of_objects|
offset|period|phase|physically_exclusive|picofarads|picoseconds|
pin_load|edge_fall|input|output|port|rise|ris|pin|rise_from|rise_to|
section_id|setup|setup|source|through|time|to|to_clock|unit|waveform
)\b
captures:
1: punctuation.separator.switch.sdc
2: support.type.std.sdc

xilinx-parameters-extensions:
- match: |-
(?xi)\s(\+|\-)(
async_reg|bel|black_box|buffer_type|cfgbvs|clock_buffer_type|
clock_dedicated_route|clock_region|clock_root|config_mode|
config_voltage|contain_routing|dci_cascade|delay_bypass|
diff_term|diff_term_adv|direct_enable|direct_reset|dont_touch|drive|
edif_extra_search_paths|equalization|exclude_placement|fsm_encoding|
fsm_safe_state|gated_clock|h_set|hiodelay_group|hlutnm|hu_set|
ibuf_low_pwr|in_term|internal_vref|io_buffer_type|iob|iobdelay|
iodelay_group|iostandard|ip_repo_paths|keep|keep_compatible|
keep_hierarchy|keeper|loc|lock_pins|lutnm|lvds_pre_emphasis|
mark_debug|max_fanout|odt|offset_cntrl|package_pin|path_mode|pblock|
post_crc|post_crc_action|post_crc_freq|post_crc_init_flag|
post_crc_source|pre_emphasis|prohibit|pulldown|pullup|ref_name|
ref_pin_name|rloc|rlc_origin|rlocs|route_status|rpm|rpm_grid|slew|
u_set|use_dsp48|used_in|vccaux_io
)\b
captures:
1: punctuation.separator.switch.sdc
2: support.type.xilinx.sdc