sdc.vim 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. " Vim syntax file
  2. " Language: SDC - Synopsys Design Constraints
  3. " Maintainer: Maurizio Tranchero - maurizio.tranchero@gmail.com
  4. " Last Change: Thu Mar 25 17:35:16 CET 2009
  5. " Credits: based on TCL Vim syntax file
  6. " Version: 0.3
  7. " Quit when a syntax file was already loaded
  8. if exists("b:current_syntax")
  9. finish
  10. endif
  11. " Read the TCL syntax to start with
  12. runtime! syntax/tcl.vim
  13. " SDC-specific keywords
  14. syn keyword sdcCollections foreach_in_collection
  15. syn keyword sdcObjectsQuery get_clocks get_ports
  16. syn keyword sdcObjectsInfo get_point_info get_node_info get_path_info
  17. syn keyword sdcObjectsInfo get_timing_paths set_attribute
  18. syn keyword sdcConstraints set_false_path
  19. syn keyword sdcNonIdealities set_min_delay set_max_delay
  20. syn keyword sdcNonIdealities set_input_delay set_output_delay
  21. syn keyword sdcNonIdealities set_load set_min_capacitance set_max_capacitance
  22. syn keyword sdcCreateOperations create_clock create_timing_netlist update_timing_netlist
  23. " command flags highlighting
  24. syn match sdcFlags "[[:space:]]-[[:alpha:]]*\>"
  25. " Define the default highlighting.
  26. hi def link sdcCollections Repeat
  27. hi def link sdcObjectsInfo Operator
  28. hi def link sdcCreateOperations Operator
  29. hi def link sdcObjectsQuery Operator
  30. hi def link sdcConstraints Operator
  31. hi def link sdcNonIdealities Operator
  32. hi def link sdcFlags Special
  33. let b:current_syntax = "sdc"
  34. " vim: ts=8